Download the PHP package icanboogie/bind-facets without Composer
On this page you can find all versions of the php package icanboogie/bind-facets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icanboogie/bind-facets
More information about icanboogie/bind-facets
Files in icanboogie/bind-facets
Package bind-facets
Short Description Binds icanboogie/facets to ICanBoogie
License BSD-3-Clause
Homepage https://icanboogie.org/
Informations about the package bind-facets
bind-facets
The icanboogie/bind-facets package binds icanboogie/facets to ICanBoogie, using its autoconfig feature, and provides the following features:
- A synthesizer for the
activerecord_facets
config. - A
criteria
prototype property for Model instances. - A
criterion_list
prototype property for Model instances. - A
fetch_record()
prototype method for Model instances. - A
fetch_records()
prototype method for Model instances.
Hinting prototype bindings
Because most features are provided through prototype methods, your favorite editor might complain about unknown methods, in which case simply use the ModelBindings trait.
The following example demonstrates how to hint your code about a fetch_records
method.
Notice the type hint in the annotation Model|ModelBindings
:
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-facets is released under the New BSD License.
All versions of bind-facets with dependencies
icanboogie/bind-activerecord Version ^5.0
icanboogie/facets Version ^0.8
icanboogie/icanboogie Version ^5.0