qobo / cakephp-social
CakePHP Social Plugin
Installs: 13 832
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 13
Forks: 1
Open Issues: 1
Type:cakephp-plugin
Requires
- abraham/twitteroauth: ^1.0
- qobo/cakephp-utils: ^13.0
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
This package is auto-updated.
Last update: 2021-07-29 19:59:58 UTC
README
About
Template for building CakePHP 3 plugins.
Developed by Qobo, used in Qobrix.
Usage
Pull the template code into your plugin directory (must be a git directory):
cd my-plugin
git pull https://github.com/QoboLtd/cakephp-plugin-template master
If you get the following error, please make sure that the plugin directory is a valid git directory. If not, you can always initiate it by executing git init
fatal: not a git repository (or any of the parent directories): .git
Make sure your composer.json
has something like this:
"autoload": {
"psr-4": {
"Foobar\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Foobar\\Test\\": "tests",
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
}
}
If you do change your composer.json
file, don't forget to run
either composer update
or at least composer dump-autoload
.
Change the following:
- Uncomment the
$pluginName
line intests/bootstrap.php
and changeFoobar
to the name of your plugin. - Change the
Foobar
namespace to your plugin's in the following files: tests/config/routes.php
tests/App/Application.php
tests/App/Controller/AppController.php
tests/App/Controller/UsersController.php
tests/Fixture/UsersFixture.php
- Put your tests into
tests/TestCase
. - Put your fixtures into
tests/Fixture
. - Run
vendor/bin/phpunit
If you know of any better way to do this please open an issue on GitHub or, better even, send a pull request.