Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add virion 3.0 support #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.idea
.DS_Store

vendor/*
composer.lock
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
}
```
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.0.0 now also

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Composer support using 2 major versions at the same time?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^4.0.0 || ^5.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"
}
}
}