Download the PHP package attia-ahmed/extendable-action without Composer

On this page you can find all versions of the php package attia-ahmed/extendable-action. 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 extendable-action

ExtendableAction

Laravel packages that allows you to make your laravel project extendable and easy to include new features without touching old code throgh Extendable Actions .

Why ExtendableAction?

Having a large codebase and dynamic features leads to a missy codebase with huge maintainability headache! This package implements the main concept of WordPress pluggable features by using of Filters and Actions ( See WordPress Hooks ) that allow you to expand your codebase in a pluggable way.

Installation

  1. Install via composer

or add it by hand to your composer.json file.

  1. Publish the config file with:

  2. Append to your in app.phpconfig file :

Usage

  1. make your extendable action:

Which is the main functionality that needs to be extended. You can make your extendable action by extending ExtendableAction class and define the method that take any number of parameters (will be modified by filters) and return result (will be modified by actions) then it will be called as Invokable Class Example:

  1. make your filters:

Which are classes that modifies the ExtendableAction input parameters or do some logic/check before running the main functionality. You can make your Filter by extending Filter class and override the method that takes method parameters of ExtendableAction as an array and returns array of parameters to be modified with another filters or to be passed to main ExtendableAction Example:

  1. make your actions:

Which are classes that modifies the ExtendableAction result or do some logic/check after running the main functionality. You can make your Action by extending Action class and override the method that takes the result of method of ExtendableAction and returns new result to be modified with another actions or to be final return result of ExtendableAction functionality. Example:

  1. Link your Filters and Actions to your Extendable action :

You can link your Filters and Action to your Extendable Action by adding new element in ExtendableActionAppServiceProvider protected attribute or by your custom implementation by overriding and of class Example :

  1. Call your Extendable action :

    is an Invokable Class and can be called by as one of following examples:

or

Compatibility with other packages

spatie/laravel-queueable-action:

you can use Extendable Action with Queueable Actions as following:

  1. Extend your Queueable Action from
  2. Add your code logic in custom defined method (Do Not Override __invoke() method)
  3. call your Queuable action as normal and Extend it with any Filters or Actions 🎉

note: You should return result to be returned to your Actions attached to Extendable Action

All your Filters and Action will run in queue

Examle:

Queuable Extendable Action:

usage:

Usage Notes

⚠️This package is a proof of concept and IS NOT READY for production.⚠️


All versions of extendable-action with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^8
php Version ^7.3|^8.0
ext-json Version *
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 attia-ahmed/extendable-action contains the following files

Loading the files please wait ....