- Create your library
$ composer create-project benjaminmal/library-template my-library
- Modify composer.json to fit with your library
{
"name": "my-org/my-library",
"description": "My library",
"type": "library",
"autoload": {
"psr-4": {
"MyNamespace\\MyLibrary\\": "lib/"
}
},
"autoload-dev": {
"psr-4": {
"MyNamespace\\MyLibrary\\Tests\\": "tests/"
}
}
}
- Initialize git
$ git init
- Enjoy!!