qobo / cakephp-utils
CakePHP utilities
Installs: 73 909
Dependents: 9
Suggesters: 0
Security: 0
Stars: 4
Watchers: 15
Forks: 3
Open Issues: 6
Language:JavaScript
Type:cakephp-plugin
Requires
- admad/cakephp-jwt-auth: ^2.0
- admad/cakephp-sequence: ^2.2
- arvenil/ninja-mutex: ^0.6
- burzum/cakephp-file-storage: ^2.0
- burzum/cakephp-imagine-plugin: ^2.0
- cakedc/users: ^8.0
- cakephp/cakephp: ^3.8
- cakephp/migrations: ^2.0
- friendsofcake/crud: ^5.4
- fzaninotto/faker: ^1.0
- josegonzalez/dotenv: ^3.2
- justinrainbow/json-schema: ^5.0
- league/csv: ^8.1
- lorenzo/audit-stash: ^2.0
- maiconpinto/cakephp-adminlte-theme: ^1.0
- mobiledetect/mobiledetectlib: 2.*
- muffin/trash: ^2.1
- myclabs/php-enum: ^1.5
- pyrech/composer-changelogs: ^1.4
- riesenia/cakephp-duplicatable: ^3.0
- rlanvin/php-rrule: ^1.6
- seld/jsonlint: ^1.7
- webmozart/assert: ^1.4
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
- dev-master
- v13.3.4
- v13.3.3
- v13.3.2
- v13.3.1
- v13.3.0
- v13.2.9
- v13.2.8
- v13.2.7
- v13.2.6
- v13.2.5
- v13.2.4
- v13.2.3
- v13.2.2
- v13.2.1
- v13.2.0
- v13.1.x-dev
- v13.1.6
- v13.1.5
- v13.1.4
- v13.1.3
- v13.1.2
- v13.1.1
- v13.1.0
- v13.0.4
- v13.0.3
- v13.0.2
- v13.0.1
- v13.0.0
- v12.3.0
- v12.2.3
- v12.2.2
- v12.2.1
- v12.2.0
- v12.1.1
- v12.1.0
- v12.0.0
- v11.1.0
- v11.0.7
- v11.0.6
- v11.0.5
- v11.0.4
- v11.0.3
- v11.0.2
- v11.0.1
- v11.0.0
- v10.3.4
- v10.3.3
- v10.3.2
- v10.3.1
- v10.3.0
- v10.2.0
- v10.1.0
- v10.0.1
- v10.0.0
- v9.3.0
- v9.2.0
- v9.1.0
- v9.0.0
- v8.0.1
- v8.0.0
- v7.10.2
- v7.10.1
- v7.10.0
- v7.9.1
- v7.9.0
- v7.8.4
- v7.8.3
- v7.8.2
- v7.8.1
- v7.8.0
- v7.7.0
- v7.6.0
- v7.5.4
- v7.5.3
- v7.5.2
- v7.5.1
- v7.5.0
- v7.4.1
- v7.4.0
- v7.3.3
- v7.3.2
- v7.3.1
- v7.3.0
- v7.2.0
- v7.1.3
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.0
- v6.8.2
- v6.8.1
- v6.8.0
- v6.7.0
- v6.6.0
- v6.5.3
- v6.5.2
- v6.5.1
- v6.5.0
- v6.4.0
- v6.3.0
- v6.2.1
- v6.2.0
- v6.1.4
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.0
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.1
- v5.1.0
- v5.0.1
- v5.0.0
- v4.7.0
- v4.6.0
- v4.5.1
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.0
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- dev-allow-required-false-unique-true
- dev-dependabot/add-v2-config-file
- dev-task-19443-add-exclude-fields-during-conversion-for-each-module
- dev-task-19430-update-schema-wth-new-attributes
- dev-dependabot/composer/burzum/cakephp-imagine-plugin-tw-3.0
- dev-andreasnicolaou-patch-1
- dev-fix-typo
- dev-task-17840-remove-cols-limit
- dev-task-#17840-remove-cols-constraint
- dev-task-17609-define-icons-prefix
- dev-generate-list-modules
- dev-task-16980-virtual-fields
- dev-task-16980-virutal-fields-in-views
- dev-dependabot/composer/league/csv-tw-9.5
- dev-cakephp-v38a
- dev-adding-limits-property
- dev-task-16553-multiple-parents
- dev-task-16415-module-generation
- dev-task-15480-helper-tooltip
- dev-task-11973-List-life-cycle
- dev-task-14498-phpcs-psr12-qobo-utils
- dev-dependabot/composer/rlanvin/php-rrule-tw-2.2
- dev-task-12198-upgrade-cakephp
- dev-template-update
This package is auto-updated.
Last update: 2023-04-17 11:14:02 UTC
README
A variety of utilities that are common and useful for several of our plugins and application.
This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.
Usage
Install the pugin with composer:
composer require qobo/cakephp-utils
Load the plugin:
bin/cake plugin load Qobo/Utils --bootstrap
Check that the plugin is loaded:
bin/cake plugin loaded
The above should output the list of loaded plugins, with Qobo/Utils
being
one of them.
Functionality
AdminLTE
One of the primary objectives of this plugin is to simplify the loading and configuration of the AdminLTE theme CakePHP plugin. Here is what you need to set it up.
Load the AdminLTE plugin:
bin/cake plugin load AdminLTE --routes --bootstrap
Load AdminLTE plugin configuration at the bottom of config/bootstrap.php
:
Configure::load('admin_lte', 'default');
Here is an example configuration you can stick into config/admin_lte.php
:
<?php return [ 'Theme' => [ 'folder' => ROOT, 'title' => 'My App', 'logo' => [ // This will be displayed when main menu is collapsed. // You can use an <img> tag in here or anything else you want. 'mini' => 'A', // This will be displayed when main menu is expanded. // You can use an <img> tag in here or anything else you want. 'large' => 'My App', ], 'login' => [ 'show_remember' => true, 'show_register' => false, 'show_social' => false, ], ], ];
Load AdminLTE theme in beforeRender()
method of src/Controller/AppController.php
:
// At the top of the file, together with other use statements: use Cake\Core\Configure; public function beforeRender(Event $event) { $this->viewBuilder()->theme('AdminLTE'); $this->set('theme', Configure::read('Theme')); // $this->set('user', $this->Auth->user()); $this->set('user', []); }
Load AdminLTE Form Helper in initialize()
method of src/View/AppView.php
:
public function initialize() { $this->loadHelper('Form', ['className' => 'AdminLTE.Form']); }
For more information on initializing and configuring the AdminLTE theme, see plugin documentation