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