2017 © Pedro Peláez
 

library bind-prototype

Binds icanboogie/prototype to ICanBoogie.

image

icanboogie/bind-prototype

Binds icanboogie/prototype to ICanBoogie.

  • Sunday, March 18, 2018
  • by olvlvl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,844 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

bind-prototype

Release Code Coverage Downloads, (*1)

The icanboogie/bind-prototype package binds icanboogie/prototype to ICanBoogie, using its Autoconfig feature. It provides a config synthesizer for prototype methods defined in prototype configuration fragments., (*2)

<?php

namespace ICanBoogie;

require 'vendor/autoload.php';

$app = boot();

$app->configs[Prototype\Config::class]; // obtain the "prototype" config.

Installation

composer require icanboogie/bind-prototype

Binding prototype methods using prototype config fragments

Using prototype configuration fragments, components may bind multiple prototype methods., (*3)

The following example demonstrates how an application may bind a url() method and a url property to instances of Article:, (*4)

<?php

// config/prototype.php

namespace App;

use ICanBoogie\Binding\Prototype\ConfigBuilder;

return fn(ConfigBuilder $config) => $config
    ->bind(Article::class, 'url', [ Hooks::class, 'url' ])
    ->bind(Article::class, 'get_url', [ Hooks::class, 'get_url' ]);

Continuous Integration

The project is continuously tested by GitHub actions., (*5)

Tests Static Analysis Code Style, (*6)

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you're expected to uphold this code., (*7)

Contributing

See CONTRIBUTING for details., (*8)

The Versions

18/03 2018

5.0.x-dev

5.0.9999999.9999999-dev https://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie

18/03 2018

dev-master

9999999-dev https://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie

18/03 2018

4.0.x-dev

4.0.9999999.9999999-dev https://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie

18/03 2018

v4.0.0

4.0.0.0 https://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie

05/03 2017

v3.0.0

3.0.0.0 https://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie

06/11 2016

v2.3.0

2.3.0.0 http://icanboogie.org/

Binds icanboogie/prototype to ICanBoogie.

  Sources   Download

BSD-3-Clause

The Requires

 

prototype icanboogie