-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add composer package setup. #32
base: master
Are you sure you want to change the base?
Conversation
"psr-4": { | ||
"Mzur\\KirbyCalendarPlugin\\": "src/" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This won't initialize the plugin correctly, though, as the index.php
is no longer executed. Instead, a files
autoload section should work:
"psr-4": { | |
"Mzur\\KirbyCalendarPlugin\\": "src/" | |
} | |
"files": [ | |
"index.php" | |
] |
Also, the index.php
will need a use
statement for the Kirby
class, similar to this one.
You could also add authors
and support
sections.
Could you please apply the changes and test them?
{ | ||
"name": "mzur/kirby-calendar-plugin", | ||
"description": "A plugin for the Kirby CMS to easily implement an event calendar.", | ||
"type": "composer-plugin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"type": "composer-plugin", | |
"type": "library", |
"name": "mzur/kirby-calendar-plugin", | ||
"description": "A plugin for the Kirby CMS to easily implement an event calendar.", | ||
"type": "composer-plugin", | ||
"license": "GNU GPL v2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"license": "GNU GPL v2", | |
"license": "GPL-2.0-only", |
This targets #31.