Download the PHP package tatter/users without Composer

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

Tatter\Users

User interfaces and provider for CodeIgniter 4

Coverage Status

Quick Start

  1. Install with Composer: > composer require tatter/users
  2. Check the list of supported factories or provide your own
  3. Access users and their methods through the provided service:

Description

Not an authentication module itself, Tatter\Users brings common interfaces and factory discovery to simplify user integration into other libraries and projects.

Installation

Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:

Or, install manually by downloading the source files and adding the directory to app/Config/Autoload.php.

Configuration

The core of Users are the interfaces for User Entities and User Factories. Your project can use the built-in classes or provide its own implementation, and any library that uses Tatter\Users will then be able to work with your user classes. Currently the following libraries are supported natively and with discovery:

Discovery will return the first UserFactory implementation it can locate with the following priorities:

  1. A UserFactory implementation called "UserModel" returned by the framework's model factory. Equivalent to:

    $users = model('UserModel', ['instanceOf' => UserFactory::class])

  2. A discovered compatible library from UserProvider.

Note: If your implementation is not compatible with number one then you may supply it to the provider directly:

\Tatter\Users\UserProvider::addFactory(MyDiscoveryClass::class, MyFactory::class);

Usage

Once you have the necessary classes available the easiest way to access them is through the Users Service:

Factories

The User Factory interface defines the following methods:

Entities

The User Entity interface defines the following methods:

There are extended interfaces in the Tatter\Users\Interfaces namespace that provide additional methods which may be required by some libraries. Check your library's requirements to make sure you are using all the required interfaces.

Testing

There are convenience test cases in Tatter\Users\Test to enable other libraries to add and test their own classes. If you are looking to test your user interfaces without committing to a specific provider then consider adding Tatter\Imposter - a mock authentication library that is fully compliant with Tatter\Users.

Development

Pull Requests are accepted for additional libraries and adapters. Please include the appropriate tests and provider code if you wish to support discovery. Requests for additional implementations should be opened as a Feature Request Issue and fulfillment will depend on availability and sponsorship (see "Sponsor this project").


All versions of users with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.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 tatter/users contains the following files

Loading the files please wait ....