webugetsk/cakephp-utils

Plugin for CakePHP 4.x/5.x with useful components and behaviors

Installs: 36

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 24

Type:cakephp-plugin

4.5.3 2024-06-09 08:05 UTC

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Utils Plugin for Cake 4.x

The Utils plugin offers you many components and behaviors to make developing easier.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require webugetsk/cakephp-utils

Configuration

You will need to add the following line to your application's bootstrap.php file:

Plugin::load('Utils');

Usage

Components

  • Authorizer - Component to work easily with authorization in your application-controllers.
  • GlobalAuth - Enables global access to user-data.
  • Menu - Adds menu-items in sections to pass to your view.
  • Search - Creates filters for your queries so you are able to filter on your list with a generated form.

Behaviors

  • Metas - Behavior to add meta-data to your current model.
  • Stateable - Generates multiple states (like concept, deleted, active) and with save-method and finders.
  • Uploadable - Great behavior to upload files automatically.
  • WhoDidIt - Saves the user who created the row, and modified the row.
  • IsOwnedBy - Checks if your entity is owned by the given (logged in) user.

Support

  • Gitter - Chat Tool for GitHub to talk about issues and new features.

  • GitHub - When there's something wrong, please open a new issue!

  • CakePHP Utils Plugin Docs - Documentation about the Utils Plugin.

Contributing

If you have a good idea for a new feature, feel free to pull or open a new issue. Pull requests are always more than welcome!

License

The MIT License (MIT)

Copyright (c) 2014 CakeManager by bobmulder

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.