mirko-pagliai / me-tools
MeTools plugin for CakePHP
Installs: 74 442
Dependents: 4
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=8.1
- ext-json: *
- cakephp/cakephp: ^4.5
- mirko-pagliai/php-tools: ~1.7.4|~1.8.1
Requires (Dev)
- ext-fileinfo: *
- cakephp/cakephp-codesniffer: ^4.0
- mirko-pagliai/cakephp-assets: ^1.5.7
- phpstan/phpstan: ^1.10.38
- phpunit/phpunit: ^9.3|^9.5
- vimeo/psalm: ^5.15.0
Suggests
- axllent/jquery: To use jQuery, the JavaScript library
- fortawesome/font-awesome: To use Font Awesome's icons
- mirko-pagliai/cakephp-assets: A CakePHP plugin to allows you to generate assets
- twbs/bootstrap: To use Bootstrap, the world's most popular framework for building responsive, mobile-first sites
Conflicts
- dev-master
- 2.26.0
- 2.25.8
- 2.25.7
- 2.25.6
- 2.25.5
- 2.25.4
- 2.25.3
- 2.25.2
- 2.25.1
- 2.25.0
- 2.24.1
- 2.24.0
- 2.23.2
- 2.23.1
- 2.23.0
- 2.22.4
- 2.22.3
- 2.22.2
- 2.22.1
- 2.22.0
- 2.21.6
- 2.21.5
- 2.21.4
- 2.21.3
- 2.21.2
- 2.21.1
- 2.21.0
- 2.20.9
- 2.20.8
- 2.20.7
- 2.20.6
- 2.20.5
- 2.20.4
- 2.20.3
- 2.20.2
- 2.20.1
- 2.20.0
- 2.19.11
- 2.19.10
- 2.19.9
- 2.19.8
- 2.19.7
- 2.19.6
- 2.19.5
- 2.19.4
- 2.19.3
- 2.19.2
- 2.19.1
- 2.19.0
- 2.18.16
- 2.18.15
- 2.18.14
- 2.18.13
- 2.18.12
- 2.18.11
- 2.18.10
- 2.18.9
- 2.18.8
- 2.18.7
- 2.18.6
- 2.18.5
- 2.18.4
- 2.18.3
- 2.18.2
- 2.18.1
- 2.18.0
- 2.17.6
- 2.17.5
- 2.17.4
- 2.17.3
- 2.17.2
- 2.17.1
- 2.17.0
- 2.16.10
- 2.16.9
- 2.16.8
- 2.16.7
- 2.16.6
- 2.16.5-RC3
- 2.16.4-RC2
- 2.16.3-RC1
- 2.16.2-beta
- 2.16.1-beta
- 2.16.0-beta
- 2.15.0
- 2.14.0
- 2.13.1
- 2.13.0
- 2.12.5
- 2.12.4
- 2.12.3
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.4
- 2.11.3
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.5
- 2.10.4
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.1
- 2.9.0
- 2.8.0
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1-RC3
- 2.1.0-RC2
- 2.0.1-RC1
- 2.0.0-beta
- dev-php7.2
This package is auto-updated.
Last update: 2024-06-02 16:00:37 UTC
README
MeTools is a CakePHP plugin to improve applications development. It provides some useful tools, such as components, helpers and javascript libraries. Refer to our API to discover them all.
Installation
You can install the plugin via composer:
$ composer require --prefer-dist mirko-pagliai/me-tools
Then you have to load the plugin. For more information on how to load the plugin, please refer to the Cookbook.
Simply, you can execute the shell command to enable the plugin:
bin/cake plugin load MeTools
This would update your application's bootstrap method.
Installation on older CakePHP and PHP versions
Recent packages and the master branch require at least CakePHP 4.2 and PHP 7.4 and the current development of the code is based on these and later versions of CakePHP and PHP. However, there are still some branches compatible with previous versions of CakePHP and PHP.
For PHP 7.2 or later
The php7.2 branch requires at least PHP 7.2.
In this case, you can install the package as well:
$ composer require --prefer-dist mirko-pagliai/me-tools:dev-php7.2
Note that the php7.2
branch will no longer be updated as of May 13, 2022,
except for security patches, and it matches the 2.20.9 version.
Use the theme for Bake
MeTools includes a theme for Bake. For information on Bake's themes, refer to the CookBook.
If you want to use this theme, don't forget to use the --theme MeTools
option when you Bake, or to set the theme as default:
<?php // in src/Application::bootstrapCli() before loading the 'Bake' plugin. Configure::write('Bake.theme', 'MeTools');
How to extract POT files
First, copy the CakePHP binaries (at least bin/cake
and bin/cake.php
),
adapting bin/cake.php
to the plugin.
For example, it might look like this:
#!/usr/bin/php -q <?php declare(strict_types=1); require_once dirname(__DIR__) . '/tests/bootstrap.php'; use App\Application; use Cake\Console\CommandRunner; // Build the runner with an application and root executable name. $runner = new CommandRunner(new Application(APP . '/config'), 'cake'); exit($runner->run($argv));
Then run the extract command in the console:
$ bin/cake i18n extract --paths config,src,templates --overwrite
Versioning
For transparency and insight into our release cycle and to maintain backward compatibility, MeTools will be maintained under the Semantic Versioning guidelines.