From c18cd5b515f12479a769a643096e11e50188a66b Mon Sep 17 00:00:00 2001 From: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com> Date: Sat, 17 Jun 2023 13:43:14 -0500 Subject: [PATCH 1/2] Virion v3 instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9054fe1..a9ebf96 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 @@ -17,5 +18,17 @@ projects: YourPlugin: libs: - src: jojoe77777/FormAPI/libFormAPI - version: ^2.1.1 + version: ^2.1.0 +``` +#### Virion v3 +In your `composer.json` add an entry to the `require` attribute, like so: + +```diff + { + "name": "author/project", + "require": { ++ "jojoe77777/formapi": "^2.1.0", + "pmmp/pocketmine-mp": "^4.0.0 + } + } ``` From 634c05f98826b5fe0e2f900cd07b3f2d266509d6 Mon Sep 17 00:00:00 2001 From: IvanCraft623 Date: Sat, 17 Jun 2023 13:45:43 -0500 Subject: [PATCH 2/2] feat: add virion 3.0 support --- .gitignore | 3 +++ README.md | 4 ++-- composer.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 composer.json 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 a9ebf96..dcfb585 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ projects: YourPlugin: libs: - src: jojoe77777/FormAPI/libFormAPI - version: ^2.1.0 + version: ^2.1.1 ``` #### Virion v3 In your `composer.json` add an entry to the `require` attribute, like so: @@ -27,7 +27,7 @@ In your `composer.json` add an entry to the `require` attribute, like so: { "name": "author/project", "require": { -+ "jojoe77777/formapi": "^2.1.0", ++ "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" + } + } +}