Download the PHP package noraziz/ci4-aauth without Composer

On this page you can find all versions of the php package noraziz/ci4-aauth. 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 ci4-aauth


Aauth is a User Authorization Library for CodeIgniter 4.x, the original version aauth, which aims to make easy some essential jobs such as login, permissions and access operations. Despite its ease of use, it has also very advanced features like private messages, groupping, access management, and public access.

This is Quick Start page. You can also take a look at the detailed Documentation Wiki to learn about other great Features

Features


What's new


Migration


Quick Start


Let's get started :) First, we will load the Aauth Library into the system

That was easy!

Now let's create two new users, Frodo and Legolas.

We now we have two users.

OK, now we can create two groups, hobbits and elves.

Now, let's create a user with power, Gandalf (for our example, let's assume he was given the id of 12).

OK, now we have two groups and three users.

Let's create two permissions walk_unseen and immortality

Ok, now let's give accesses to our groups. The Hobbits seem to have ability to walk unseen, so we will assign that privilage to them. The Elves have imortality, so we will assign that privilage to them. We will assign access with allow_group() function.

Wait a minute! Hobbits should not have immortality. We need to fix this, we can use deny_group() to remove the permission.

Gandalf can also live forever.

Ok now let's check if Hobbits have immortality.

Results:

Does Gandalf have the ability to live forever?

Results:

Since we don't accually live in Middle Earth, we are not aware of actual immortality. Alas, we must delete the permission.

It is gone.

Un-authenticated Users

So, how about un-authenticated users? In Aauth they are part of the public group. Let's give them permissions to travel. We will assume we already have a permission set up named travel.

Admin Users

What about the Admin users? The Admin user and any member of the Admin group is a superuser who had access everthing, There is no need to grant additional permissions.

User Parameters/Variables

For each user, variables can be defined as individual key/value pairs.

For example, if you want to store a user's phone number.

To retreive value you will use get_user_var():

Aauth also permits you to define System Variables. These can be which can be accesed by all users in the system.

Private Messages

OK, let's look at private messages. Frodo (id = 3) will send a PM to Legolas (id = 4);

Banning users

Frodo has broke the rules and will now need to be banned from the system.

You have reached the end of the Quick Start Guide, but please take a look at the detailed Documentation Wiki for additional information.

Don't forget to keep and eye on Aauth, we are constantly improving the system. You can also contribute and help me out. :)


All versions of ci4-aauth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
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 noraziz/ci4-aauth contains the following files

Loading the files please wait ...