diff --git a/.gitignore b/.gitignore index 090a1f0..1a56b7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .idea .DS_Store + +vendor/* +composer.lock diff --git a/README.md b/README.md index 9054fe1..dcfb585 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ This library can be loaded as a plugin phar. You can use the [`depend`](https:// ### As a virion This library supports being included as a [virion](https://github.com/poggit/support/blob/master/virion.md). +#### Virion v1 If you use [Poggit](https://poggit.pmmp.io) to build your plugin, you can add it to your `.poggit.yml` like so: ```yml @@ -19,3 +20,15 @@ projects: - src: jojoe77777/FormAPI/libFormAPI version: ^2.1.1 ``` +#### Virion v3 +In your `composer.json` add an entry to the `require` attribute, like so: + +```diff + { + "name": "author/project", + "require": { ++ "jojoe77777/formapi": "^2.1.1", + "pmmp/pocketmine-mp": "^4.0.0 + } + } +``` diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fb106ab --- /dev/null +++ b/composer.json @@ -0,0 +1,28 @@ +{ + "name": "jojoe77777/formapi", + "description": "Simple API for creating forms on PocketMine-MP.", + "type": "library", + "license": "LGPL-3.0", + "require": { + "pocketmine/pocketmine-mp": "^4.0.0" + }, + "autoload": { + "classmap": ["src"] + }, + "authors": [ + { + "name": "jojoe77777", + "email": "jojoefivesevens@gmail.com" + }, + { + "name": "Dylan K. Taylor", + "email": "dktapps@pmmp.io" + } + ], + "extra": { + "virion": { + "spec": "3.0", + "namespace-root": "jojoe77777\\FormAPI" + } + } +}