2017 © Pedro Peláez
 

library atlatl

A tiny and very simple micro-framework

image

etenil/atlatl

A tiny and very simple micro-framework

  • Tuesday, September 10, 2013
  • by etenil
  • Repository
  • 2 Watchers
  • 0 Stars
  • 186 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Atlatl

Author: Guillaume Pasquet (aka Etenil) boss@etenil.net, (*1)

Atlatl is a fast and modular MVC framework for PHP, (*2)

License

Atlatl is licensed under GPLv3 license. See LICENSE file for further details., (*3)

Project Goals

The overall goal of this branch is to make a viable core for a bigger framework, with plug-ins support and MVC structure in place and built-in support for multiple applications., (*4)

Testability needs to be stressed with the introduction of Dependency-Injection and PHPUnit support., (*5)

Finally, security features will be introduced as PHP only provides very basic safety guards and this should be part of the core of any non-trivial project., (*6)

Usage

Here is an example of how to use atlatl:, (*7)

require('loader.php');

$app = new atlatl\Core('/atlatl/test.php');

class TestModule extends atlatl\Module {
    protected $name;

    function hello() {
        return "Hello ".$this->name."!";
    }
}

class TestController extends atlatl\Controller {
    function test() {
        echo $this->modules->TestModule->hello();
    }
}

$app->loadModule('TestModule', array('name' => 'Guillaume'));
$app->serve(array('/' => 'TestController::test'));

First we are creating a new Atlatl app. An important thing to notice here is the prefix that we pass on to the application. This prefix is the part of URL that sits between the domain name and the framework's location. In the example, the framework sits at a URL like so: http://somewhere.com/atlatl/test.php/., (*8)

Then we create a new module that will return a greeting with a name. The controller will handle the requests and inherit the loaded modules from the app., (*9)

Finally we set up the routes and serve., (*10)

For more information, refer to the MANUAL.md file., (*11)

Credits

Many thanks to Joe Topjian for the original GluePHP code., (*12)

The Versions

10/09 2013

dev-master

9999999-dev http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

10/09 2013

v1.4

1.4.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

26/05 2013

dev-stable

dev-stable http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

26/05 2013

v1.3

1.3.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

26/05 2013

v1.2

1.2.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

16/05 2013

v1.1

1.1.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

13/03 2013

v1.0

1.0.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp

13/01 2013

0.1

0.1.0.0 http://pikacode.com/etenil/atlatl

A tiny and very simple micro-framework

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

micro framework gluephp