Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 567 Bytes

README.md

File metadata and controls

35 lines (30 loc) · 567 Bytes

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!!