PHPackages                             atl/atl-framework - 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. atl/atl-framework

ActiveLibrary

atl/atl-framework
=================

The Atl Framework.

1.0.x-dev(8y ago)0139MITPHPPHP &gt;=5.3.0

Since Jun 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/leeit1992/atl-framework)[ Packagist](https://packagist.org/packages/atl/atl-framework)[ RSS](/packages/atl-atl-framework/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

atl-framework
=============

[](#atl-framework)

Framework MVC for team

Get Started
-----------

[](#get-started)

[Composer Download](https://getcomposer.org/doc/00-intro.md).

```
$ composer install
```

Load view
---------

[](#load-view)

```
View('layout/header')
```

Use Route
---------

[](#use-route)

Main index

```
$route->get('/','MainController@index');
```

Route Get

```
$route->get('/id/{id}', 'MainController@checkRouteGet');
```

Route Post

```
$route->post('/validate','MainController@checkRoutePost');
```

Route validate int

```
$route->get('/id/{id}', 'MainController@checkRoutePost', array('page' => '\d+'));
```

Validation Form;
----------------

[](#validation-form)

[Exemple detail](http://www.sirius.ro/php/sirius/validation/simple_example.html).

```
use Atl\Validation\Validation;
$validator = new Validation;

$validator->add(
    array(

        // the key is in the form [field]:[label]
        'name:Name' => 'required',

        // you can have multiple rules for the same field
        'email:Your email' => 'required | email',

        // validators can have options
        'message:Your message' => 'required | minlength(10)',

        // and you can overwrite the default error message
        'phone:Phone' => 'regex(/your_regex_here/)(This field must be a valid US phone number)'
    )
);

if ($validator->validate($_POST)) {

    // send notifications to stakeholders
    // save the form data to a database

} else {

    // send the error messages to the view
    $view->set('errors', $validator->getMessages();

}
```

Session;
--------

[](#session)

Handle session.

```
// Config file config/app.php
'session' => array( 'status' => true, 'storage' => ''),

 // Use code base
Session()->set('name','Test Session');
echo Session()->get('name');

// Session flash

Session()->getFlashBag()->set('name', 'Test');
var_dump(Session()->getFlashBag()->has('name'));
var_dump(Session()->getFlashBag()->get('name'));
```

Redirect;
---------

[](#redirect)

Handle redirect url.

```
redirect( url('exemple/id/1') );
```

\_\_ ;
------

[](#__-)

```
```

Use pagination
--------------

[](#use-pagination)

```
use Atl\Pagination\Pagination;

$ofset                = 10; // Result query row number.
$config['pageStart']  = $page; // Number of page.
$config['ofset']      = $ofset;
$config['totalRow']  = 50; // Number of count total row.
$config['baseUrl']   = url('/page/'); // Url base of pagination.

$pagination          = new Pagination($config);

echo $pagination->link( $config );
```

Use Model
---------

[](#use-model)

Use model static

```
DB()->insert("account", [
	"user_name" => "foo",
	"email"     => "foo@bar.com"
]);

DB()->update("account", [
	"user_name" => "foo",
	"email"     => "foo@bar.com"
],[
	"id" => 1
]);

DB()->select("account", [
	"user_name",
	"email"
], [
	"user_id[>]" => 100
]);

DB()->select("account", "user_name", [
	"email" => "foo@bar.com"
]);
// WHERE email = 'foo@bar.com'

DB()->select("account", "user_name", [
	"user_id" => 200
]);
// WHERE user_id = 200

DB()->select("account", "user_name", [
	"user_id[>]" => 200
]);
// WHERE user_id > 200

DB()->select("account", "user_name", [
	"user_id[>=]" => 200
]);
// WHERE user_id >= 200

DB()->select("account", "user_name", [
	"user_id[!]" => 200
]);
// WHERE user_id != 200

DB()->select("account", "user_name", [
	"age[]" => [200, 500]
]);
// WHERE age BETWEEN 200 AND 500

DB()->select("account", "user_name", [
	"age[>]" => 40])
]);
// WHERE user_id IN (2, 51, 321, 3431)
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/912dad16237b7df675ec4fb0c661166480d5f8ff1cd9e21ff86adeb74c59d5e4?d=identicon)[leeit1992](/maintainers/leeit1992)

---

Top Contributors

[![leeit1992](https://avatars.githubusercontent.com/u/13826529?v=4)](https://github.com/leeit1992 "leeit1992 (27 commits)")

### Embed Badge

![Health badge](/badges/atl-atl-framework/health.svg)

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

PHPackages © 2026

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