Download the PHP package icanboogie/bind-prototype without Composer
On this page you can find all versions of the php package icanboogie/bind-prototype. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icanboogie/bind-prototype
More information about icanboogie/bind-prototype
Files in icanboogie/bind-prototype
Package bind-prototype
Short Description Binds icanboogie/prototype to ICanBoogie.
License BSD-3-Clause
Homepage https://icanboogie.org/
Informations about the package bind-prototype
bind-prototype
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.
Binding prototype methods using hooks
config fragments
Using hooks
configuration fragments, components may bind multiple prototype methods.
The following example demonstrates how an application may bind a url()
method and a url
property to instances of ActiveRecord
:
Requirements
The package requires PHP 7.2 or later.
Installation
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.
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.
License
icanboogie/bind-prototype is released under the New BSD License.