Download the PHP package cleaniquecoders/laravel-expiry without Composer

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

Laravel Expiry

Latest Version on Packagist PHPStan Run Tests Fix PHP Code Style Issues Total Downloads

cleaniquecoders/laravel-expiry is a Laravel package that enables expiration for user accounts and passwords with seamless middleware and event-driven support.


Features


Installation

Install the package via Composer:

Publish and run the migration files to add the necessary expiry columns:

Middleware Registration

The package automatically registers the following middleware in your application:


Usage

Apply Middleware

Use the middleware in your routes to enforce expiry checks:

Event Listeners

The package provides a configuration-driven approach to managing event listeners. By default, the following events and listeners are configured:

Default Event-to-Listener Mapping

The configuration (config/laravel-expiry.php) includes the following mappings:

Handling Events

The package automatically registers these events and listeners. You can modify or extend the behaviour by updating the configuration file.

For example, when a user's account or password expires:

Customising Listeners

To add custom listeners for these events, update the configuration file (config/laravel-expiry.php):

With this setup, the package makes it easy to integrate custom logic for handling expiry events.


Testing

To run the test suite, use the following command:

The package is fully tested with PestPHP to ensure reliability.


Contributing

Thank you for considering contributing to cleaniquecoders/laravel-expiry. Contributions are welcome and appreciated!

Reporting Bugs

If you find a bug, you can either:

Coding Style

The package follows PSR-2 coding standards and PSR-4 autoloading.


License

This package is open-source software licensed under the MIT license.


All versions of laravel-expiry with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 | ^8,2 | ^8.3
doctrine/dbal Version ^3.0
illuminate/auth Version ^9.0 | ^10.0 | ^11.0
illuminate/support Version ^9.0 | ^10.0 | ^11.0
spatie/laravel-package-tools Version ^1.16
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 cleaniquecoders/laravel-expiry contains the following files

Loading the files please wait ....