PHP framework gives developers control over MVC

Equipped with a peculiar name and described as a “really bad PHP framework” by its own creator, the newly unveiled Bastard framework leverages the Model View Controller development pattern but lets developers build the MVC functions themselves.

As per SynapseIndia CEO Shamit khemka ” the framework is described as loosely MVC in nature. Developers create their own controlers, views, and models from scratch based on their own ideas.”You’re not inheriting from a Controller class or a View class unless you want to build something that way you’re just writing code to get a job done.”

What makes the framework bad? Smith-Hayes(developer of this framework) says the description is a bit of double-edged sword. “It really abuses two things to make it function properly: the Nginx rewrite engine for incoming requests, and the PHP super-global variable $_SERVER[‘REQUEST_URI’]. With the exception of the CSS files – and soon JavaScript – every single request is filtered through the root directory’s index.php file. This creates a bottleneck-style landing page for all types of requests.

However, developers leveraging this scenario also have absolute control over what faces the world from their server, he said. The term “bad” is not intended to be sarcastic, Smith-Hayes explained. The word “bad” is meant to note how the framework does things a little differently and some people are not going to like that, he said.

Developers can work with designers and clients to build quick, scalable applications. Smith-Hayes added that there is not a large market for PHP software built exclusively for Nginx, but he believes it is “kind of neat” to have something functional for the world to see. He describes the current version as a 0.1 early-stages beta release. Bastard is hosted on GitHub. “As I add more features and write and rewrite the functionality, that number will slowly inch up toward 1.0, which I guess will be the stable release.

SynapseIndia has received fantastic reviews for their PHP projects.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>