Download the PHP
package nat/deploy without Composer
On this page you can find all versions of the php package
nat/deploy. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
Informations about the package deploy
Welcome in the deploying tool by Nat
The goal is to deploy a Symfony project on Heroku with custom command line.
10 Steps :
Prepare a notepad 📝 to paste the 3 infos to answer my questions :)
You must have a Symfony project to deploy ;)
account to get your credentials :
your email attached to your accountexample @ email . com 📝
your API Key 8XXXXXXX-4YYY-4ZZZ-4AAA-12BBBBBBBBBBB 📝
You must create an new app on Heroku and copy the app-name-of-your-project 📝
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
TIP: On the same page, choose the automatic deploy, when you push on Github, it quickly serves your changes on Heroku enable automatic deploy
Run this command in your project dir
composer require nat/deploy
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.
Now you can check this :
[x] .htaccess is in public directory
[x] .env.php is at root of you project
[x] Procfile is at root of you project
[x] ClearDb is enabled in Heroku Resources
[x] APP_ENV is set in Heroku Settings (click reveal config vars)
[x] APP_SECRET is set too in the same Settings
[x] DATABASE_URL is equal to CLEARDB_DATABASE_URL
[x] 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).
Requiresphp Version
>=7.2.5|>=8.0.0 symfony/process Version
>=5.1.0|^6.1.0
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package nat/deploy contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.