Download the PHP package t4web/authentication without Composer

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

Authentication

Master: Build Status codecov.io Scrutinizer Code Quality

Authentication module for zf2

Contents

Introduction

Very simple authentication from the Box - define accounts config with login and password and use.

Installation

Main Setup

By cloning project

Clone this project into your ./vendor/ directory.

With composer

Add this project in your composer.json:

Now tell composer to download Authentication by running the command:

Post installation

Enabling it in your application.config.phpfile.

Configuring

For define which page need authorization, you can redeclare need-authorization-callback, by default:

For change auth login form layout you can define layout route param, for change redirect uri after success authorization, you can define redirect-to-url route param:

By default auth use php array for auth storage, but you can write own:

Adapter\MyAdapter must implement Zend\Authentication\Adapter\ValidatableAdapterInterface.

Adapters

This module contain two adapters in the Box PhpArray and Table.

PhpArray adapter

This adapter use by default. For define logins and passwords just describe it in you config in auth-accounts section:

Table adapter

This is wrapper for Zend\Authentication\Adapter\DbTable\CallbackCheckAdapter, for start use, define it in your config:

and describe auth['table-adapter'] config:

Testing

Unit test runnig from authentication module directory.

For running Functional tests you need create codeception.yml in you project root, like this:

After this you may run functional tests from your project root


All versions of authentication with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5 || ^7.0
zendframework/zend-authentication Version ~2.5.0
zendframework/zend-console Version ~2.5.0
zendframework/zend-eventmanager Version ~2.5.0
zendframework/zend-http Version ~2.5.0
zendframework/zend-modulemanager Version ~2.5.0
zendframework/zend-mvc Version ~2.5.0
zendframework/zend-servicemanager Version ~2.5.0
zendframework/zend-session Version ~2.5.0
zendframework/zend-view Version ~2.5.0
t4web/session Version ^1.0
t4web/event-subscriber 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 t4web/authentication contains the following files

Loading the files please wait ....