2017 © Pedro Peláez
 

library bear

Bear Component

image

ahoulgrave/bear

Bear Component

  • Monday, December 11, 2017
  • by ahoulgrave
  • Repository
  • 4 Watchers
  • 2 Stars
  • 88 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

PHP Bear, (*1)

Bear PHP Component Project

SensioLabsInsight Build Status Coverage Status Latest Stable Version Total Downloads, (*2)

Requirements

  • PHP 7.1+

Installation

You can install bear using composer, (*3)

composer require ahoulgrave/bear

Usage

<?php
require 'vendor/autoload.php';

use Bear\App;
use Bear\Routing\SymfonyRoutingAdapter;
use Zend\ServiceManager\ServiceManager;

$config = [
    'services' => [
        MyController::class => new MyController(),
    ],
    'factories' => [
        'routingAdapter' => function () {
            $loader = ...;
            $resource = ...;

            return new SymfonyRoutingAdapter($loader, $resource);
        },
    ],
];

$app = new App(new ServiceManager($config), 'routingAdapter');
$app->run();

Dependency containers

As first argument, you can provide any PSR-11 Container. Here are some you can use: - Zend Service Manager - Symfony DI Component - Pimple - Aura.DI - PHP DI - PHP League's Container, (*4)

Routing adapters

You need at least one routing adapter to run an application - Symfony Routing Adapter - FastRoute Routing Adapter, (*5)

The Versions

11/12 2017

dev-master

9999999-dev

Bear Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Agustin Houlgrave

11/12 2017
06/12 2017

1.2.x-dev

1.2.9999999.9999999-dev

Bear Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Agustin Houlgrave

06/12 2017
22/10 2017

1.1.x-dev

1.1.9999999.9999999-dev

Bear Component

  Sources   Download

The Requires

 

The Development Requires

by Agustin Houlgrave

22/10 2017

1.0.x-dev

1.0.9999999.9999999-dev

Bear Component

  Sources   Download

The Requires

 

The Development Requires

by Agustin Houlgrave

22/10 2017

1.1.0

1.1.0.0

Bear Component

  Sources   Download

The Requires

 

The Development Requires

by Agustin Houlgrave