Installation

How to install ArrowPHP

A PSR-7 Request/Response package is also required. See requirements below.

Framework

Composer is the package manager used by ArrowPHP for installation management.

Simply add the following line to your composer.json file ...

composer.json
  ...
  "require": {
    "arrowphp/arrow": "0.1.x"
  },
  ...

... and run the following command in the same directory as your composer.json file.

$ composer update

Project Setup

ArrowPHP comes with a simple command to build your project. This will set up your core project structure, create your required core files, and build a cache of your configs. Simply run the following command.

$ vendor/bin/arrow-build

The required core files are only created if they don't already exist.

Requirements

PHP 7.2

PHP 7.2 is the minimum supported PHP version. This is the version of PHP the framework was developed for.

PSR-7 HTTP Message interface package

A PSR-7 HTTP Message interface package is required by ArrowPHP. This library is responsible for handling the application requests and holding the responses to be returned. ArrowPHP allows you to choose any PSR-7 compatible Request/Response package.

Example composer.json

composer.json

{
  "name": "My project name",
  "description": "My project description (powered by ArrowPHP).",
  "require": {
    "php": "^7.2",
    "arrowphp/arrow": "0.1.x",
    "guzzlehttp/guzzle": "6.3.x"
  },
  "autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  }
}

Last updated

Was this helpful?