atomwares / atom
Atom Framework Core
1.0
2017-07-31 13:16 UTC
Requires
- php: >=5.6.0
- atomwares/atom-container: ^1.0
- atomwares/atom-dispatcher: ^1.0
- atomwares/atom-http: ^1.0
- atomwares/atom-router: ^1.0
- http-interop/http-middleware: ^0.4.1
- psr/container: ^1.0
- psr/http-message: ^1.0
Provides
This package is not auto-updated.
Last update: 2024-11-01 22:28:06 UTC
README
Installation
The simplest way to install and get started is using the skeleton project:
$ composer create-project atomwares/atom-project <project dir>
Or install Atom standalone using Composer:
$ composer require atomwares/atom
Usage
Create a bootstrap file with the following contents:
<?php require 'vendor/autoload.php'; ($app = new Atom\App())->router ->get(['home' => '/'], function () { return 'Hello World!'; }); $app->run();
You may run the script using the built-in PHP server:
$ php -S localhost:8000
License
The Atom Framework is licensed under the MIT license. See License File for more information.