2017 © Pedro Peláez
 

library icehawk

Lightweight PHP routing framework, respecting CQRS

image

icehawk/icehawk

Lightweight PHP routing framework, respecting CQRS

  • Friday, September 1, 2017
  • by hollodotme
  • Repository
  • 9 Watchers
  • 61 Stars
  • 5,327 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 47 Versions
  • 9 % Grown

The README.md

Join the chat at https://gitter.im/icehawk/icehawk Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License phpstan enabled, (*1)

IceHawk Framework

Lightweight PHP routing framework, respecting CQRS., (*2)

Requirements

For development only:, (*3)

Installation

composer require icehawk/icehawk:^2.1

or add to your composer.json:, (*4)

{
    "require": {
        "icehawk/icehawk": "^2.1"
    }
}

Documentation

A full documentation can be found on our website: icehawk.github.io, (*5)

Quickstart (installer)

We provide an installer package that creates a new IceHawk project for you. Simply run:, (*6)

composer create-project -n icehawk/installer /path/to/new-project

Answer the questions of the interactive installer and you're good to go., (*7)

» Watch our short video and see how it works: Install IceHawk framework in less than 2 minutes, (*8)

Quickstart (manual)

Step 0 - Create a basic composer.json

{
    "require": {
        "icehawk/icehawk": "^2.1"
    },
    "autoload": {
        "psr-4": {
            "YourVendor\\YourProject\\": "./"
        }
    }
}

Then run:, (*9)

composer update

Step 1 - Create a request handler

<?php declare(strict_types = 1);

namespace YourVendor\YourProject;

use IceHawk\IceHawk\Interfaces\HandlesGetRequest;
use IceHawk\IceHawk\Interfaces\ProvidesReadRequestData;

final class SayHelloRequestHandler implements HandlesGetRequest
{
    public function handle( ProvidesReadRequestData $request ) 
    {
        echo "Hello World!";   
    }   
}

— SayHelloRequestHandler.php, (*10)

Step 2 - Create a basic config

All you need is at least one read or write route., (*11)

<?php declare(strict_types = 1);

namespace YourVendor\YourProject;

use IceHawk\IceHawk\Routing\ReadRoute;
use IceHawk\IceHawk\Routing\Patterns\Literal;

final class IceHawkConfig extends \IceHawk\IceHawk\Defaults\IceHawkConfig
{
    public function getReadRoutes() 
    {
        return [
            new ReadRoute( new Literal('/'), new SayHelloRequestHandler() ),    
        ];
    }
}

— IceHawkConfig.php, (*12)

Step 3 - Create a bootstrap script

<?php declare(strict_types = 1);

namespace YourVendor\YourProject;

use IceHawk\IceHawk\IceHawk;
use IceHawk\IceHawk\Defaults\IceHawkDelegate;

require('vendor/autoload.php');

$iceHawk = new IceHawk(new IceHawkConfig(), new IceHawkDelegate());
$iceHawk->init();

$iceHawk->handleRequest();

— index.php, (*13)

Step 4 - Say hello

Go to your project folder an run:, (*14)

php -S 127.0.0.1:8088

Go to your browser an visit: http://127.0.0.1:8088/, (*15)

Hello World!, (*16)

Visit our website for the full documentation., (*17)

Contributing

Contributions are welcome! Please see our contribution guide., (*18)

The Versions

01/09 2017

dev-master

9999999-dev

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

01/09 2017

v2.2.0

2.2.0.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

01/09 2017

dev-development

dev-development

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

10/02 2017

v2.1.1

2.1.1.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

10/02 2017

dev-issue/27

dev-issue/27

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

10/02 2017

dev-issue/28

dev-issue/28

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

19/12 2016

v2.1.0

2.1.0.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

19/12 2016

dev-issue/16

dev-issue/16

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

17/11 2016

dev-issue/17

dev-issue/17

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

16/11 2016

dev-issue/15

dev-issue/15

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

16/11 2016

dev-issue/22

dev-issue/22

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

15/11 2016

dev-v2.0-stable

dev-v2.0-stable

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

15/11 2016

dev-v2.0-dev

dev-v2.0-dev

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

12/11 2016

v2.0.4

2.0.4.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

04/11 2016

dev-issue/20

dev-issue/20

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

04/11 2016

v2.0.3

2.0.3.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

03/11 2016

v2.0.2

2.0.2.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

16/10 2016

v2.0.1

2.0.1.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

06/10 2016

v2.0.0

2.0.0.0

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

27/09 2016

v2.0.0-rc5

2.0.0.0-RC5

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

27/09 2016

dev-issue/1-request-default-values

dev-issue/1-request-default-values

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

26/09 2016

dev-issue/add-copyright-strict-types

dev-issue/add-copyright-strict-types

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

26/09 2016

dev-refactoring/shorten-request-getters

dev-refactoring/shorten-request-getters

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

13/07 2016

v2.0.0-rc4

2.0.0.0-RC4

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

04/07 2016

v2.0.0-rc3

2.0.0.0-RC3

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

04/07 2016

v2.0.0-rc2

2.0.0.0-RC2

Lightweight PHP routing framework, respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

by Tobias Mißner
by Benjamin Bruska

03/07 2016

v1.4.2

1.4.2.0

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

23/06 2016

v2.0.0-rc1

2.0.0.0-RC1

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-fileinfo *

 

The Development Requires

  • ext-xdebug *

by Tobias Mißner

10/01 2016

v1.4.1

1.4.1.0

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

27/11 2015

dev-feature/setup-environment

dev-feature/setup-environment

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

27/11 2015

v1.4.0

1.4.0.0

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

02/10 2015

v1.3.1

1.3.1.0

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

23/09 2015

v1.3.0

1.3.0.0

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

19/09 2015

dev-release/going-public

dev-release/going-public

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

16/09 2015

v1.3.0-rc4

1.3.0.0-RC4

Fast and reliable PHP frontend framework respecting CQRS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Tobias Mißner

04/09 2015

v1.3.0-rc3

1.3.0.0-RC3

Fast and reliable frontend framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

03/09 2015

v1.3.0-rc2

1.3.0.0-RC2

Fast and reliable frontend framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

03/09 2015

v1.3.0-rc1

1.3.0.0-RC1

Fast and reliable frontend framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Tobias Mißner

27/08 2015

v1.2.3

1.2.3.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

  • php-64bit >=5.5

 

The Development Requires

by Tobias Mißner

27/08 2015

v1.2.2

1.2.2.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

  • php-64bit >=5.5

 

The Development Requires

by Tobias Mißner

29/06 2015

v1.2.1

1.2.1.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

  • php-64bit >=5.5

 

The Development Requires

by Tobias Mißner

10/05 2015

v1.2.0

1.2.0.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

  • php-64bit >=5.5

 

The Development Requires

by Tobias Mißner

26/04 2015

v1.0.2

1.0.2.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Tobias Mißner

26/04 2015

v1.1.1

1.1.1.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Tobias Mißner

23/04 2015

v1.1.0

1.1.0.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Tobias Mißner

02/04 2015

v1.0.1

1.0.1.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Tobias Mißner

30/03 2015

v1.0.0

1.0.0.0

Fast and reliable frontend framework

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Tobias Mißner