In this article I want to show you how you can get the maximum performance out of your PHP application.
Most apps don't really use the whole power of PHP, instead just activate APC and think that is
the most you can get. Keep reading if you want to be surprised.
If you have a continuous integration server running or have some kind of a dev/staging
machine for your (software) release management you might considered already vagrant to
ease that process. Especially, when you deal with VMs and software releases you usually
want that each machine (dev, staging, live) have the exact same services/libs/package installed.
Even better with automatically provisioning of your third-party dependencies/packages of that server.
In Twig it's not possible to call filters based on a variable per default.
I've created therefore a small Symfony bundle that provides a new Twig filter
does exactly that: Calls filter based on a variable. Useful when you want to give your users a way
to format something and therefore the filters comes from the database.
Adding a real dynamic router in Symfony through a Bundle is unfortunately not that easy to achieve.
Beside the magic in the CMF RouterBundle you could use your classic config files (which is not dynamic)
or a Route Loader which has
some drawbacks (result is always internally cached) and isn't really dynamic either.
imagepng function and its performance have a very interesting fact.
When you think compression in
comes with a quality-loss or you should always choose one of the highest compression
then you'll get now new information.