Download the PHP package equidna/domain-token-auth without Composer

On this page you can find all versions of the php package equidna/domain-token-auth. 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 domain-token-auth

README

This documentation follows the coding conventions reflected throughout the codebase.


Project Overview

equidna/domain-token-auth is a Laravel package that provides secure, domain-scoped opaque token authentication. It issues cryptographically random tokens tied to a functional domain, a polymorphic owner model, a set of roles and fine-grained actions, optional custom data payload, and an optional validity window. Tokens are stored only as SHA-256 hashes; the plain-text value is shown exactly once at issuance time.

Who it is for:

Main use cases:


Project Type & Tech Summary

Property Value
Project type Laravel package (library)
Package name equidna/domain-token-auth
PHP version ^8.2
Laravel version ^12.0\|^13.0 (via illuminate/* components)
Symfony version HttpFoundation ^7.2\|^8.0
Primary database Relies on the host application's configured database
Cache Not used internally
Queue Not used internally
Key external service equidna/bee-hive (optional) - multi-tenant context propagation

Quick Start

Laravel 12 runs on PHP 8.2+ with Symfony 7. Laravel 13 requires PHP 8.3+ and supports Symfony 7.4 or 8; Symfony 8 itself requires PHP 8.4+.

  1. Install via Composer:

  2. Publish the configuration file:

  3. Publish and run migrations:

  4. Implement TokenOwner on your owner model and add the HasDomainTokens trait:

  5. Configure your domains in config/domain-token-auth.php.

  6. Protect routes with the domain-token middleware:

  7. Issue tokens via the facade or Artisan command:

  8. Consume authenticated token data in protected routes:

For full details, see Deployment Instructions.


Documentation Index


License

MIT - see LICENSE.


All versions of domain-token-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
symfony/http-foundation Version ^7.2|^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 equidna/domain-token-auth contains the following files

Loading the files please wait ...