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 Build Status Code Quality Code Coverage Packagist, (*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 hooks configuration fragments., (*2)

<?php

namespace ICanBoogie;

require 'vendor/autoload.php';

$app = boot();

$app->configs['prototype']; // obtain the "prototype" config.

Binding prototype methods using hooks config fragments

Using hooks 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 ActiveRecord:, (*4)

<?php

// config/prototype.php

namespace App;

$hooks = Hooks::class . '::';

return [

    Article::class . '::url' => $hooks . '::url',
    Article::class . '::get_url' => $hooks . '::url'

];

Requirements

The package requires PHP 7.2 or later., (*5)

Installation

composer require icanboogie/bind-prototype

Documentation

The package is documented as part of the ICanBoogie framework documentation. You can generate the documentation for the package and its dependencies with the make doc command. The documentation is generated in the build/docs directory. ApiGen is required. The directory can later be cleaned with the make clean command., (*6)

Testing

Run make test-container to create and log into the test container, then run make test to run the test suite. Alternatively, run make test-coverage to run the test suite with test coverage. Open build/coverage/index.html to see the breakdown of the code coverage., (*7)

License

icanboogie/bind-prototype is released under the New BSD License., (*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