Search overlay panel for performing site-wide searches
Salesforce (Heroku) Named a Leader. Learn More!
A blue oval logo with the letters "PHP" in the center.

Build beautiful apps with PHP

The elegant platform for modern PHP apps

Deploy

When you push your code, Heroku automatically detects, installs and enables the PHP version and PHP extensions required by your app’s composer.lock.

Heroku’s PHP support docs

Customize

Whether you prefer Apache HTTPD or Nginx, they work out of the box, or with your own configuration. Need custom php.ini settings? You have full control!

Configuring PHP and Web Servers

Scale

Scale your dynos horizontally by simply dragging a slider. Heroku automatically configures PHP-FPM workers based on dyno RAM and configured PHP memory_limit.

Optimizing PHP Application Concurrency

Get started now with php on Heroku

$example = new Heroku\Cloud()

  • Require your favorite PHP version with Composer
  • Create an index.php
  • Provision an app with heroku create
  • Deploy with git push heroku main
  • PHP detected automatically
  • We’re live, curl powerful-brushlands-1374.herokuapp.com

View the Docs

Heroku gives you simple, easy ways to…

Be in the Flow

Collaborating easily, testing early, and deploying often are all part of Heroku FlowHeroku Pipelines streamline your workflow, Heroku Review Apps auto-deploy your PRs, Heroku CI tests anything you push to GitHub, and much more.

Continuous Delivery on Heroku

Architect and scale

The Heroku runtime makes it easy to deploy loosely coupled services that run in lightweight, isolated Linux containers known as dynos. The architecture of the Heroku platform encourages best practices that ensure durability and scalability.

Heroku Platform Principles

Extend and grow

Extend your app with relational databases like PostgreSQL or MySQL, leverage NoSQL data stores such as Redis® or MongoDB, stream events into Apache Kafka or an AMQP server, send emails, monitor your app – with 200+ add-ons, the possibilities are limitless.

Heroku Add-ons

The PHP logo, featuring "php" in lowercase letters, is displayed in white within a blue oval.

PHP on Heroku

“PHP developers enjoy the language’s stability, superb performance, and incredible, constantly evolving ecosystem. Powerful frameworks, unrivaled dependency management, and Heroku’s smooth user experience make app developers happy and productive.”

A person with curly hair and glasses is looking to the side, sitting indoors. They are wearing a dark shirt.

David Zuelke

PHP Language Owner

Popular Add-ons

Add-ons are fully-managed services, integrated for use with Heroku, which provide services for logging, caching, monitoring, persistence and more.
View All Add-ons

Heroku Postgres

Data Stores

Red circle with a white horizontal rectangle in the center, resembling a minus sign.

Mailgun

Email/SMS

A geometric design with interlocking green and dark gray rectangular shapes forming a 3D-like structure on a white background.

New Relic APM

Monitoring

Papertrail logo

Papertrail

Logging

Popular Buttons

Heroku Buttons let you one-click provision, configure and deploy applications to Heroku.
View All Buttons

Learning OpenTok PHP

160 Recent Deploys

Kanboard

121 Recent Deploys

Symfony Angular Todo MVC

39 Recent Deploys

Heroku WordPress Demo

26 Recent Deploys

Illustration of blue elephants and water droplets with the text: "Along the water bearing millions on their backs, wisdom of the herd.

Download our PHP haiku illustration

Enjoy the Heroku-created PHP haiku illustration wallpaper for your desktop, tablet, and mobile screens.

Ready to Get Started?

Stay focused on building great data-driven applications and let Heroku tackle the rest.

Sign Up Now