Good news from Heroku: PHP is (finally) properly supported. Just add a composer.json file to your repo and Heroku will know your app runs PHP. Yes, you see that right: Composer is supported. Whenever you push your code to Heroku, it will install the dependencies if needed. $ git add . $ git commit -m …
Tag Archives: composer
Composer Cheat Sheet
Batch install dependencies in all subfolder-organised projects
As a lecturer ICT I have to correct the work our students make. Therefor I collect all solutions and put them in a subfolder-organised structure on disk: per student I create a subfolder and put their solution into that folder(*). $ tree -L 1 . ├── student1 ├── student2 ├── … └── studentN As – …
Continue reading “Batch install dependencies in all subfolder-organised projects”
bramus/router Updates
It’s been 4 months since I released bramus/router, the lightweight and object oriented PHP Router I wrote. Since then a few new features worth mentioning were added. Subrouting Support It’s now possible to mount several routes onto a base route. Think of creating a /movies route on which you attach a callable which in its …
bramus/router — A lightweight and simple object oriented PHP Router
For one of the courses I teach I was in need of a PHP Router. Having explored the available routers out there I found they either were: Outdated Not object oriented(sorry Klein (which has been updated by now, but wasn’t at the time)) Rather bad at the separation of concerns(sorry Ham & Klein; a router …
Continue reading “bramus/router — A lightweight and simple object oriented PHP Router”
Silex $app['autoloader']->registerNamespace()
deprecated
The past few days I’ve been playing around with Silex, a micro PHP Framework. At a certain point I got stuck in the process when using a custom controller: the darn class just wouldn’t load and the (otherwise excellent) documentation on the Silex site has not mention on how to load it. Most of the …
Continue reading “Silex $app['autoloader']->registerNamespace()
deprecated”