PHPackages                             nytrix/cleverload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nytrix/cleverload

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nytrix/cleverload
=================

A powerfull php library

v1.0.2(4y ago)0181MITPHPPHP &gt;=5.3,&lt;8.0-DEV

Since Nov 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/thomaskolmans/Cleverload)[ Packagist](https://packagist.org/packages/nytrix/cleverload)[ Docs](https://github.com/thomaskolmans/Cleverload)[ RSS](/packages/nytrix-cleverload/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (6)Used By (0)

[![](/cleverload.svg)](/cleverload.svg)

Cleverload
==========

[](#cleverload)

*A lightweight library, that takes care of your routing and file loading*

Installation
------------

[](#installation)

*How do you install?*

You can use composer

```
composer require nytrix/cleverload
```

Or by manually downloading it from here.

Usage
-----

[](#usage)

**Activate Cleverload**In order to have cleverload work, you have to

*.htaccess* from the folder you want Cleverload to handle the request.

```
RewriteEngine On
RewriteRule ^(.*)$ index.php [NC,L,QSA]
```

Or when you use a view folder to load your files, you can also use this:

```
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/view/%{REQUEST_URI} -f
RewriteRule (.*) /view/$1 [R=301,L]

RewriteRule ^ index.php [L]
```

*index.php* same folder as the *.htaccess*.

```
use lib\Cleverload;
use lib\Http\Request;
use lib\Routing\Router;

require_once("autoloader.php");

$request = new Request($_SERVER);
$cleverload = new Cleverload($request);
$cleverload->getRequest()->getRouter()->getResponse();
```

In the *routes* folder, you can add files or use the existing *web.php* file to add routes.

Routes
------

[](#routes)

We support *GET*, *POST*, *PUT*, *PATCH*, *DELETE*, *ALL* request, you can route each like so

```
Route::get("/",function(){});
Route::post("/",function(){});
Route::put("/",function(){});
Route::patch("/",function(){});
Route::delete("/",function(){});
Route::all("/",function(){});
```

You can also return files instead of functions, your file comes from the viewdir, you can set this in your *index.php* by adding

```
$cleverload->viewDir("/path/to/view");
```

Then you can return a file from there in the routes like so:

```
Route::get("/","index.php");
```

Groups
------

[](#groups)

In your router, you can also group your request, by for instance prefixes, or namespaces, or domainnames.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b02d66ccc629b06b09d1e5f3e0bb8f37d04288bfc4ba31c5d37a5dde1ec12e1?d=identicon)[thomaskolmans](/maintainers/thomaskolmans)

---

Top Contributors

[![thomaskolmans](https://avatars.githubusercontent.com/u/16803991?v=4)](https://github.com/thomaskolmans "thomaskolmans (44 commits)")

---

Tags

loaderphproutertemplateCleverloadloads

### Embed Badge

![Health badge](/badges/nytrix-cleverload/health.svg)

```
[![Health](https://phpackages.com/badges/nytrix-cleverload/health.svg)](https://phpackages.com/packages/nytrix-cleverload)
```

###  Alternatives

[owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

252.6k](/packages/owenmelbz-https-enforcement)[algoyounes/laravel-package-skeleton

Laravel Package Skeleton for streamlined package development

271.3k](/packages/algoyounes-laravel-package-skeleton)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
