bear / devtools
Installs: 160 340
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^8.0
- ext-filter: *
- aura/sql: ^3 || ^4 || ^5
- bear/app-meta: ^1.8
- bear/resource: ^1.17
- koriym/php-server: ^1.0
- psr/log: ^1 || ^2 || ^3
- ray/aop: ^2.14
- ray/di: ^2.14
- symfony/process: ^v5.4 || ^v6.4 || ^v7.0
- xhprof/xhprof: ^2.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- bear/package: ^1.10
- madapaja/twig-module: ^2.5
- phpunit/phpunit: ^9.6
- ray/aura-sql-module: ^1.10
Suggests
- ext-xhprof: XHprof hierarchical profiler
This package is auto-updated.
Last update: 2024-10-20 16:16:37 UTC
README
Halo module
A frame, called a halo, appears around the HTML representation of the resource. The halo identifies the resource being rendered and provides tools about the resource.
The tools in the halo provide information about the resource, such as its status (Status), its representation (View), the interceptor applied to it, and so on. It also provides links to editors to resource classes and resource templates.
class DevModule extends AbstractModule { protected function configure(): void { $this->install(new HaloModule($this)); } }
HttpResource client
HttpResource
starts a local server and becomes an HTTP client.
$resource = new HttpResource('127.0.0.1:8099', '/path/to/index.php', '/path/to/curl.log'); $ro = $resource->get('/'); assert($ro->code === 200);