PHPackages                             nat/deploy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. nat/deploy

ActivePackage[DevOps &amp; Deployment](/categories/devops)

nat/deploy
==========

Add command line to deploy a symfony project on Heroku

1.3.3(3y ago)8589mitPHPPHP &gt;=7.2.5|&gt;=8.0.0

Since Jul 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Nathalie-Verdavoir/deploy-heroku)[ Packagist](https://packagist.org/packages/nat/deploy)[ Docs](https://www.linkedin.com/in/nathalie-verdavoir/)[ RSS](/packages/nat-deploy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (51)Used By (0)

[![English](/assets/en.png)](https://github.com/Nathalie-Verdavoir/deploy-heroku/blob/master/README.md) [![Français](/assets/fr.png)](https://github.com/Nathalie-Verdavoir/deploy-heroku/blob/master/README.fr.md)

Welcome in the deploying tool by Nat
====================================

[](#welcome-in-the-deploying-tool-by-nat)

[![Commandline](https://camo.githubusercontent.com/c00ecf5633059133214181ca86b82d5abf20cf04fbc1041c9a6428dfa3bb2bb1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d636f6d6d616e646c696e652d2532333533393146452e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706f7765727368656c6c266c6f676f436f6c6f723d776869746526636f6c6f72423d707572706c65)](https://camo.githubusercontent.com/c00ecf5633059133214181ca86b82d5abf20cf04fbc1041c9a6428dfa3bb2bb1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d636f6d6d616e646c696e652d2532333533393146452e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706f7765727368656c6c266c6f676f436f6c6f723d776869746526636f6c6f72423d707572706c65)[![Symfony](https://camo.githubusercontent.com/330b21971025fe16b6eed8629857af16d289d64b5a8b75163eaae3ef81ef2f6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d77686974652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d626c61636b)](https://camo.githubusercontent.com/330b21971025fe16b6eed8629857af16d289d64b5a8b75163eaae3ef81ef2f6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d77686974652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d626c61636b)[![heroku](https://camo.githubusercontent.com/f93ddf98042042987d3a9d4dce7a3aa43401cb1fa3e906ce46446770248ab114/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4865726f6b752d3433303039383f6c6f676f3d6865726f6b75267374796c653d666f722d7468652d6261646765266c6f676f436f6c6f723d7768697465)](https://dashboard.heroku.com/)

The goal is to deploy a `Symfony` project on `Heroku` with custom `command line`.

[![logos](/assets/ban.png)](/assets/ban.png)

10 Steps :
----------

[](#10-steps-)

[![1](/assets/1.png)](/assets/1.png) Prepare a notepad 📝 to paste the `3 infos` to answer my questions :)

[![2](/assets/2.png)](/assets/2.png) You must have a `Symfony` project to deploy ;)

[![3](/assets/3.png)](/assets/3.png) You must have a `Heroku` account with [billing](https://dashboard.heroku.com/account/billing) enabled by a credit card 💳(needed by ClearDb/mySql but don't worry it's free)

[![4](/assets/4.png)](/assets/4.png) Go in your Heroku [account](https://dashboard.heroku.com/account/) to get your credentials :

- your email attached to your [account](https://dashboard.heroku.com/account/) `example @ email . com 📝`
- your API Key `8XXXXXXX-4YYY-4ZZZ-4AAA-12BBBBBBBBBBB 📝`

[![5](/assets/5.png)](/assets/5.png) You must create an new app on Heroku and copy the `app-name-of-your-project 📝`

[![6](/assets/6.png)](/assets/6.png) Connect your Github and your Heroku accounts and click the "search" button to show your repositories list, then select the good one in this list

[![link](/assets/link.PNG)](/assets/link.PNG)

`TIP: On the same page, choose the automatic deploy, when you push on Github, it quickly serves your changes on Heroku enable automatic deploy`

[![7](/assets/7.png)](/assets/7.png) Install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) if you've never done it.

[![8](/assets/8.png)](/assets/8.png) Run this command in your project dir

```

composer require nat/deploy

```

[![9](/assets/9.png)](/assets/9.png) Then run this command and follow the instructions

```

php bin/console nat:heroku

```

OR ```

php bin/console nat:h

```

During the process, it may appear some errors or lags : - When it is saying that is `waiting for you to log in Browser`, it should open your browser and you will have to click login and enter your credentials in the form, then come back to your console to continue the process.

[![10](/assets/10.png)](/assets/10.png) Now you can check this :

- .htaccess is in public directory
- .env.php is at root of you project
- Procfile is at root of you project
- ClearDb is enabled in Heroku Resources
- APP\_ENV is set in Heroku Settings (click reveal config vars)
- APP\_SECRET is set too in the same Settings
- DATABASE\_URL is equal to CLEARDB\_DATABASE\_URL
- If you have some of them, other specific vars of your project are set as well (CORS\_ALLOW\_ORIGIN, MAILER\_DSN, etc...). If they are not set, please set them by yourself.

Now you can export your local database to import it in you clearDb (adobe mysql workbench is fine to do it) then Push your files in your github (and Heroku if you didn't enable the automatic deploy).

You can delete this tool by running

```

composer remove nat/deploy

```

If you need help, let me know ;)

[Nathalie Verdavoir](https://fr.linkedin.com/in/nathalie-verdavoir?trk=profile-badge)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

50

Last Release

1379d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ded77d165dd8b79c25504c2981f46687c68cd3481d25cebfe5f765af3a5b282e?d=identicon)[Nathalie-Verdavoir](/maintainers/Nathalie-Verdavoir)

---

Top Contributors

[![Nathalie-Verdavoir](https://avatars.githubusercontent.com/u/92262294?v=4)](https://github.com/Nathalie-Verdavoir "Nathalie-Verdavoir (57 commits)")

---

Tags

symfonybundleherokudeployClearDB

### Embed Badge

![Health badge](/badges/nat-deploy/health.svg)

```
[![Health](https://phpackages.com/badges/nat-deploy/health.svg)](https://phpackages.com/packages/nat-deploy)
```

###  Alternatives

[easycorp/easy-deploy-bundle

The easiest way to deploy Symfony applications

468310.2k](/packages/easycorp-easy-deploy-bundle)[ideato/idephix

PHP automation and deploy tool.

6533.1k](/packages/ideato-idephix)[benjam1/symfttpd

PHP webserver

151.7k](/packages/benjam1-symfttpd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
