Skip to content

Commit

Permalink
composer.json version
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 31, 2017
1 parent 944e318 commit 7d0c2a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions en/plugin-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Use this template as a starting point for your `composer.json` file:
{
"name": "package/name",
"description": "Your plugin’s package description",
"version": "1.0.0",
"type": "craft-plugin",
"minimum-stability": "dev",
"require": {
Expand Down Expand Up @@ -109,6 +110,8 @@ Here’s a full list of the properties that can go in that `extra` object:

> {note} Don’t include `composer/installers` as a Composer dependency.
> {tip} While not strictly required by Composer, we recommend you explicitly set the `version` in your `composer.json` because it makes a couple things easier on your when developing the plugin. Don’t forget to keep it updated though!
### Primary Plugin Class

The `src/Plugin.php` file is your plugin’s primary class. It will get instantiated at the beginning of every request. Its `init()` method is the best place to register event listeners, and any other steps it needs to take to initialize itself.
Expand Down

0 comments on commit 7d0c2a6

Please sign in to comment.