News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fabien Potencier:
Packing a Symfony full-stack Framework Application in one File - Bootstrapping
June 18, 2013 @ 09:06:46

Fabien Potencier has posted the second part of his "packing a Symfony app in one file" series with this look at the bootstrapping of the application. You can find the start of the series (including his intentions) in part one.

The most common way to create a Symfony project is to start with the Symfony Standard Edition: it defines a sensible directory structure for your project and it make things a lot easier when someone want to take over an existing project as he knows where the templates, the controllers, or the configuration are stored.

This part of the series looks at some of the configurations and settings you'll need to get the application up and working in a minimal way. This includes moving everything into one YAML configuration file including routing information. He shows how some bundles, bootstrap code and things to remove from the composer config.

0 comments voice your opinion now!
symfony2 fullstack singlefile application bootstrap process configuration

Link: http://fabien.potencier.org/article/70/packing-a-symfony-full-stack-framework-application-in-one-file-bootstrapping

Fabien Potencier:
Packing a Symfony full-stack Framework Application in one File - Introduction
June 17, 2013 @ 10:49:06

Fabien Potencier has a new post to his site showing how you can package a Symfony application into one file, the first part of a series. It's not "packing" like you'd think with a phar, but more of an all-in-one file setup.

Sometimes, I'm wondering if I'm not just completely crazy. [...] his is yet another step toward my Quest of the PHP Holy Grail. But besides being a though challenge, there are many other reasons that makes it interesting for everyone. First, that's a good way to learn more about the Symfony internals and especially about the Kernel class. [...] Then, I want to showcase once more the flexibility of the Symfony core framework and the decoupling between all aspects of the framework.

He does talk about one more practical use - making bug reporting easier by having just one file that can reproduce the behavior you're seeing and is easy to drop in, self-contained. He issues a challenge to himself for the course of the series - is it possible to make a full-stack application in one file and in under 200 lines of code.

0 comments voice your opinion now!
symfony2 framework singlefile fullstack series allinone

Link: http://fabien.potencier.org/article/69/packing-a-symfony-full-stack-framework-application-in-one-file-introduction


Community Events





Don't see your event here?
Let us know!


language framework community code podcast laravel install release series opinion unittest refactor testing interview developer list introduction symfony2 api threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework