arrowphp/arrow

A simple convention based framework built on league packages, encouraging a modular development structure.

v0.2.20191024 2019-10-23 14:24 UTC

This package is not auto-updated.

Last update: 2024-04-18 22:39:32 UTC


README

Software License Build Status Latest Version on Packagist Total Downloads

Introducing Arrow! The no fuss framework built on the components of a highly respected collection of moderated components held to a high standard.

The name and it’s purpose comes from the php arrow "->".

It has been developed with the Event, Router and Container components from The PHP League at it’s heart. It also comes with Middleware support, allowing you to hook into the system to add your own required functionality where required.

Pre-Release - NOTES / TODO

  1. Review all code to ensure return type consistency
  2. Updtes tests
    • Add hints to indicate files to skip in code coverage
  3. Investigate/Implmenent PHAN!
  4. Split out build
    • Init setup skeleton project

Install

Via Composer

Via project composer.json

  "require": {
    "arrowphp/arrow": "@dev"
  }

Usage

Example index.php file (using Guzzle for Psr7)

require_once __DIR__.'/../vendor/autoload.php';

$app = new \Arrow\Application();

$request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals();
$response = new \GuzzleHttp\Psr7\Response();

$response = $app->run($request, $response);
$app->flush($response);
$app->terminate();

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer run-ci

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please contact Chris Pennycuick directly instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.