Skip to content

Library template

License

Notifications You must be signed in to change notification settings

benjaminmal/library-template

Repository files navigation

Library template

Installation & usage

  1. Create your library
$ composer create-project benjaminmal/library-template my-library
  1. 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/"
    }
  }
}
  1. Initialize git
$ git init
  1. Enjoy!!