The Next Generation Platform is Coming - Get Ready Now!
GitHub Readme.md
A barebones PHP app that makes use of the Slim web framework, which can easily be deployed to Heroku.
This application supports the tutorials for both the Cedar and Fir generations of the Heroku platform. You can check them out here:
Using resources for this example app counts towards your usage. Delete your app and database as soon as you are done experimenting to control costs.
By default, apps use Eco dynos if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps to Heroku. Learn more about our low-cost plans here.
Eligible students can apply for platform credits through our new Heroku for GitHub Students program.
$ git clone https://github.com/heroku/php-getting-started
$ cd php-getting-started
$ heroku create
$ git push heroku main
$ heroku open
By default, apps on Fir use 1X-Classic dynos. To create an app on Fir you'll need to create a private space first.
$ git clone https://github.com/heroku/php-getting-started
$ cd php-getting-started
$ heroku create --space <space-name>
$ git push heroku main
$ heroku ps:wait
$ heroku open
For more information about using PHP on Heroku, see these Dev Center articles:
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.