PHP Classes

How Can a PHP HTTP Request Library Perform Multiple Actions using the Add Layer Class: Add HTTP request handlers to run multiple actions

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 85 All time: 10,024 This week: 455Up
Version License PHP version Categories
addlayer 1.0.0GNU General Publi...5HTTP, PHP 5


This package can add HTTP request handlers to run multiple actions.

It can take a file with a class that will be added to handle an HTTP request and performs valuable action for the current PHP application.

The package can add multiple HTTP request handler classes to form several layers.

This package can call all the layers to execute all the actions to process the current HTTP request.

Innovation Award
PHP Programming Innovation award nominee
January 2022
Number 6
Some applications have Web pages that need to perform multiple types of actions with the exact scripts that handle the requests to access those Web pages.

This package can register multiple handler classes that are loaded to perform various actions during the execution of the PHP script that handles the current HTTP request.

Manuel Lemos
Picture of Ali YILMAZ
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 16 packages by
Country: Turkey Turkey
Age: ???
All time rank: 249242 in Turkey Turkey
Week rank: 284 Up5 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x


What is addLayer ?

It serves to add the specified layers to the place where they are run. It takes two parameters, and both can be specified as string and array type. It is also possible to specify the layers you want to run first as the second parameter.

One or more methods can be defined for each layer. Layers have the ability to communicate with each other. They can also use $conf or self::$conf sent to the __construct method.

Using this package you can use files, classes or methods and if you want you can call external function files and meet your various needs with all these capabilities.

Out-of-class use:


$m = new Mind();
// $m::aliyilmaz('addLayer')->addLayer('app/views/index', 'app/model/index');
// $m::aliyilmaz('addLayer')->addLayer('app/controller/user:delete@message');
// $m::aliyilmaz('addLayer')->addLayer('app/views/admin', 'app/middleware/auth:admin');
// $m::aliyilmaz('addLayer')->addLayer([
//     'app/views/index:header', 
//     'app/views/index:index'
//     'app/views/index:footer'
//     ],
//     [
//     'app/variables/index'
//     ]
// );

When using it in the class:


// self::aliyilmaz('addLayer')->addLayer('app/views/index', 'app/model/index');
// self::aliyilmaz('addLayer')->addLayer('app/controller/user:delete@message');
// self::aliyilmaz('addLayer')->addLayer('app/views/admin', 'app/middleware/auth:admin');
// self::aliyilmaz('addLayer')->addLayer([
//     'app/views/index:header', 
//     'app/views/index:index'
//     'app/views/index:footer'
//     ],
//     [
//     'app/variables/index'
//     ]
// );


The index layer with the manually created model is added.
// First, the method that deletes the user is executed. Then the message method is executed.
// As a result of the use of the interface layer and the middleware layer together, only the page viewed by the admin.
// Before the header, index and footer layers are loaded, the layer where the variables to be used in these parts are defined is loaded.


  1. policyMaker 1.0.0


Instructions and files in this directory are shared under the GPL3 license.

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file addLayer.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,024
This week:455Up