Download the PHP package dnj/laravel-aaa without Composer

On this page you can find all versions of the php package dnj/laravel-aaa. 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 laravel-aaa

Laravel-AAA, a customizable and modern package for Authentication + Authorization + Accounting for your laravel project

DiscussionsDocumentation

[![LICENSE](https://img.shields.io/github/license/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/blob/master/LICENSE) [![Download Counts](https://img.shields.io/github/downloads/dnj/laravel-aaa/total.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/releases) [![Stars Count](https://img.shields.io/github/stars/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/stargazers) [![Forks Count](https://img.shields.io/github/forks/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/network/members) [![Watchers Count](https://img.shields.io/github/watchers/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/watchers) [![Issues Count](https://img.shields.io/github/issues/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/issues) [![Pull Request Count](https://img.shields.io/github/issues-pr/dnj/laravel-aaa.svg?style=for-the-badge)](https://github.com/dnj/laravel-aaa/pulls) [![Follow](https://img.shields.io/github/followers/dnj.svg?style=for-the-badge&label=Follow&maxAge=2592000)](https://github.com/dnj)

What is Laravel-AAA?

Authentication is one of web applications most critical and essential features. Web frameworks like Laravel provide many ways for users to authenticate.\ You can implement Laravel authentication features quickly and securely. However, implementing these authentication features poorly can be risky, as malicious parties can exploit them.\ But, we built a fully customizable package from ground-up to solve this!

Some Laravel-AAA's features in summary are:

Laravel-AAA is currently under heavy development. You can give your suggestions and feedback on our Discussions page.

How to start

First of all, you need a laravel installation, You can start a laravel project by running command:

Or if you already have Laravel, install laravel-aaa in your project by running:

Then, publish configs using this command:

This will results:

As you see, there are a aaa.php config file that we use it later.

Concepts

We deal with some concepts, like: Type, TypeAbility, TypeLocalizedDetails, User and Username

Type

We define some Types in our app, consider a Type is a user level that defines user has access to which fetures of your app. The Type has an id, a localized nameds that can be defined for any languages, maybe a parent, paybe some child, and some abilities.

TypeAbility

Consider this as a permission for user, each ability is belong to a Type.

User

Each user is has a Type and the Type define that this user has access to which fetures of your app.

Username

Each user may have some usernames, username can be anything, like: email, cellphone, telegram id, ....

aaa.php

In this file, you can define the guest type, if user not exists in you app (or not logged in), the app will use this type for check permissions. define the ID of the guest type in aaa.php in guestType property.

Policies

Laravel-AAA provides support for polices You can define a polices by runnig command:

Then, add your policies to AuthServiceProvider:

now, you can check permission like this:

Type Managment

The ITypeManager interface provides methods for creating, updating, and deleting types, Here's an example of how to create a new type:

User Managment

The IUserManager interface provides methods for creating, updating, and deleting users, Here's an example of how to create a new user:

Bug Reporting

If you find any bugs, please report it by submitting an issue on our issue page with a detailed explanation. Giving some screenshots would also be very helpful.

Feature Request

You can also submit a feature request on our issue page or discussions and we will try to implement it as soon as possible. If you want to contribute to this project, please contribute to this project.

Development

If you want to run this project in your local system, please follow this guide:

  1. Fork this project

  2. Clone the project to your local system using this command

  3. Change directory to the root directory of this project

  4. Install all dependencies using composer

  5. Run the project in development mode.

All versions of laravel-aaa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
dnj/laravel-user-logger Version ^1.1.2
dnj/laravel-localization Version ^1.0.0
yeganemehr/laravel-support Version ^1.0.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 dnj/laravel-aaa contains the following files

Loading the files please wait ....