Imports your private reposotiry as dependency in Composer
Wanted to bring in your private repository into the party? Let Forte import it for you. This package offers an alternative to paying Private Packagist, yet makes sure that when you are ready to pay someday, migrating your dependencies will not be so hard!
composer install forte-php
There is nothing really magical happening under the hood. Forte PHP uses the power of GitHub API to connect to your private repository.
Create your my.forte.json
file at the root of your project:
{
"username":"YOUR_GITHUB_USERNAME",
"token":"YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
}
👉 IMPORTANT: MAKE SURE TO ADD my.forte.json
TO YOUR .gitignore
LIST
- Your private repository must contain
composer.json
- Create your forte.composer.json, like so:
{
"require": {
"kenjiefx/jwt":{
"branch":"0.1.0",
"repository":"KenjieFx/JWT"
}
}
}
- The
kenjiefx/jwt
field in the example above refers to name field in your repository's composer.json, like so:
To install your private repository, run php forte install
Run composer dump-autoload