Skip to content

Commit c5f837c

Browse files
committed
Create release 3.0.0
1 parent f0475f4 commit c5f837c

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,31 @@ For making this plugin easily usable, you can make the given replacements please
1717

1818
Then you have to rename the `bea-plugin-boilerplate.php` to `my-plugin.php` and edit the plugin header.
1919

20+
### Composer ###
21+
You need composer to autoload all your classes from the classes folder.
22+
23+
Use the `beapi/composer-scaffold-plugin` package that add it automatically to the composer.json file.
24+
You can add it yourself like this :
25+
26+
```composer.json
27+
"autoload": {
28+
"psr-4": {
29+
"BEA\PB\\": "content/plugins/bea-plugin-boilerplate/classes/"
30+
}
31+
}
32+
```
33+
34+
## Autoload ##
35+
The autoload is based on psr-4 and handled by composer.
36+
2037
## Changelog ##
2138

39+
### 3.0.0
40+
* May 2020
41+
* Remove autoload.php file, it's have to be on the composer.json file autoloading
42+
* Move compatibility class to the classes directory
43+
* Use the PSR-4 naming convention
44+
2245
### 2.2
2346
* February 2019
2447
* Remove widget feature

bea-plugin-boilerplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: BEA Plugin Name
44
Version: 1.0.0
5-
Version Boilerplate: 2.2
5+
Version Boilerplate: 3.0.0
66
Plugin URI: https://beapi.fr
77
Description: Your plugin description
88
Author: Be API Technical team

0 commit comments

Comments
 (0)