This library is a type safe wrapper for PHP Reflection API.
This library is born with the purpose to solve the problem of type safety in PHP Reflection API.
Reflection API is a very powerful tool, but presents some issues.
For example:
- the original
ReflectionClass::getConstantreturnfalseif the constant does not exist or if the constant is equal tofalse. ReflectionClass::newInstancereturn a generic object, but it is possible to know the type of the object.- New interfaces are added to the Reflection API in different PHP versions, so it is not possible to use them in a cross-version way.
Installation
web-fu/reflection is available on Packagist and can be installed
using Composer.
composer require web-fu/reflectionThe SEAL project is a PHP library designed to simplify the process of interacting
with different search engines. It provides a straightforward interface that enables users
to communicate with various search engines, including:
- Elasticsearch
- Opensearch
- Meilisearch
- Algolia
- Loupe
- Solr
- RediSearch
- Typesense
- Memory
- ... missing something? Let us know!
It also provides integration packages for the
BypassFinals effortlessly strips away final and readonly keywords from your PHP code on-the-fly. This handy tool makes it possible to mock final methods and classes, seamlessly integrating with popular testing frameworks like PHPUnit, Mockery, or Nette Tester.
Composer dependency analyser
💪 Powerful: Detects unused, shadow and misplaced composer dependencies
⚡ Performant: Scans 15 000 files in 2s!
⚙️ Configurable: Fine-grained ignores via PHP config
🕸️ Lightweight: No composer dependencies
🍰 Easy-to-use: No config needed for first try
✨ Compatible: PHP 7.2 - 8.3What features does Heat.js have?
- Zero-dependencies and extremely lightweight!
- Full API available via public functions.
- Fully styled in CSS/SASS, fully responsive, and compatible with the Bootstrap library.
- Full CSS theme support (using :root variables).
- 3 views supported: Map, Chart and Statistics!
- Fully configurable per DOM element.
- Toggling colors on/off support.
- Export all data to CSV, JSON, XML, and TXT.
- Import data from JSON and TXT.
- 51 language translations available!
- Trend types allows data to be split up and viewed separately.
- Customizable tooltips.
- 12 additional themes available (for dark and light mode).
- Data pulling (does not support trend types).
- Color ranges support different colors per view.
What features does Observe.js have?
- Zero-dependencies and extremely lightweight!
- JS Object and HTML DOM Element watching!
- Watch for specific property changes!
- Cancel, Pause, and Resume support!
- Full API available via public functions.
- Fully configurable!
- Fully configurable per watch!
- Custom triggers for actions (when changes are detected, on cancellation, etc).