6 ms·
I'm a bit surprised there isn't a buildpack for PHP. It seems like there would be a demand, since PHP it so popular (I know I would definitely use it). I wonde
by gee_totes 14y ago
I'm a bit surprised there isn't a buildpack for PHP. It seems like there would be a demand, since PHP it so popular (I know I would definitely use it).
I wonder if it's because modern PHP apps (such as Symfony) have some external dependencies (such as on the APC cache).
- lstoll 14y agoThere is, it's just not officially supported: https://github.com/heroku/heroku-buildpack-php https://github.com/heroku/heroku-buildpack-php . Github lists it as having 82 forks, so people are definitely playing around with this.
- sync 14y agoYep. You can even run Wordpress with our fork: https://github.com/Americastestkitchen/heroku-wordpress-php/ https://github.com/Americastestkitchen/heroku-wordpress-php/
- stevencorona 14y agoSurprised it's using mod_php instead of PHP-FPM
- ericcholis 14y agoI was disappointed by Heroku's lack of PHP support while speccing a recent project. Happy to see that there is "unofficial" support for it at the moment. Competition is a good thing!
- rbxbx 14y agoI've heard good things about http://www.appfog.com/ http://www.appfog.com/ who used to specialize in heroku-esque PHP deployments. Perhaps they'd be worth checking out.
- cocoflunchy 14y agoTheir site seems to be down... see http://appfog.com/products/phpfog/pricing/ http://appfog.com/products/phpfog/pricing/
- patja 14y agoYes, you have to love the myopia and revisionist definition of the statement "Run and scale any type of app. Run any web or background process with any web framework or worker type. " Really Heroku? Any web framework? I guess PHP and ASP.NET aren't web frameworks any longer.
- mwmanning 14y agohttps://github.com/heroku/heroku-buildpack-php https://github.com/heroku/heroku-buildpack-php https://github.com/brandur/heroku-buildpack-mono https://github.com/brandur/heroku-buildpack-mono
- programminggeek 14y agoNot to be a jerk, but you've been able to run PHP on Heroku for quite a while now, even without buildpacks. Create a facebook app and set language to PHP and you're good to go. Also, if you look at the heroku facebook php template app, there is minimal config needed to run php on heroku. Also, PHP is not a web framework, it's a language.
- slurgfest 14y agoIf you compare it to things called web frameworks in other languages, PHP is a language and a web framework (or, if you like, which provides a highly integrated default framework).
- natrius 14y agoUsing PHP on Heroku has never been straightforward. They don't even mention PHP in this post, and the instructions you've given are fairly undiscoverable. Ignorance of the possibility of running PHP on Heroku is more than excusable.