Add local folder into composer

1) edit composer.json on local folder
{
“name”: “blablabla/hahaha”,
“classmap”: [“src”],
“autoload”: {
“psr-0”: {
“MWSFinancesService”: “src/”
}
}
}

2) do command on local folder
composer install
git init
git add -A
git commit -m “first”

3) edit project composer.json
“repositories”: [
{
“type”: “vcs”,
“url”: “/path/to/local/repository/”
}
],
“require”: {
“blablabla/hahaha”: “dev-master”
}

Tell others about me!

Leave a Reply

Your email address will not be published. Required fields are marked *