Download the PHP package dereuromark/cakephp-tinyauth without Composer

On this page you can find all versions of the php package dereuromark/cakephp-tinyauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cakephp-tinyauth

CakePHP TinyAuth Plugin

CI Latest Stable Version Coverage Status PHPStan Minimum PHP Version Total Downloads Coding Standards

A CakePHP plugin to handle authentication and user authorization the easy way.

This branch is for CakePHP 5.1+. For details see version map.

Why use TinyAuth?

TinyAuth is a wrapper plugin that extends CakePHP's official Authentication and Authorization plugins, providing significant advantages:

🚀 Zero-Code Configuration

⚡ Lightning Fast Setup

🛠️ Developer Experience

🔧 Flexibility

📊 When to Choose TinyAuth

Choose TinyAuth when you want:

Since this plugin just further extends the official ones, you can skip the plugin's authentication and authorization components, and use the original plugins' functionality if you want:

You can still use the other helpers of this plugin, however.

What's the idea?

Default CakePHP authentication and authorization depends on code changes in at least each controller, maybe more classes. This plugin hooks in with a single line of change and manages all that using config files and there is no need to touch all those controllers, including plugin controllers.

It is also possible to manage the config files without the need to code. And it can with adapters also be moved completely to the DB and managed by CRUD backend.

Ask yourself: Do you need the overhead and complexity involved with a full blown (RBAC DB) ACL or very specific Policy approaches? See also my post acl-access-control-lists-revised/. If not, then this plugin could very well be your answer and a super quick solution to your auth problem :)

But even if you don't leverage the full authentication or authorization potential, the available AuthUserComponent and AuthUserHelper can be very useful when dealing with role based decisions in your controller or view level. They also work stand-alone.

Demo

See https://sandbox.dereuromark.de/auth-sandbox

auth_allow.ini

Define the public actions (accessible by anyone) per controller:

auth_acl.ini

Define what actions may be accessed by what logged-in user role:

AuthUser component and helper

Installation

Required Dependencies

IMPORTANT: TinyAuth is a wrapper plugin that extends CakePHP's official plugins. You must understand them first:

📦 Official CakePHP Plugins

Plugin Purpose Documentation
cakephp/authentication Handles user authentication (login, sessions, etc.) 📖 Official Docs
cakephp/authorization Handles user authorization (permissions, access control) 📖 Official Docs

Note: You only need to install the plugin(s) for the features you plan to use. The AuthUser component and helper can work standalone without requiring the official plugins.

📦 Install TinyAuth

After installing the required official plugin(s), install TinyAuth:

Finally, load the plugin:

Docs

Full documentation: https://dereuromark.github.io/cakephp-tinyauth/

Also note the original blog post and how it all started.


All versions of cakephp-tinyauth with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
cakephp/cakephp Version ^5.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dereuromark/cakephp-tinyauth contains the following files

Loading the files please wait ...