Download the PHP package awcodes/focus without Composer
On this page you can find all versions of the php package awcodes/focus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awcodes/focus
More information about awcodes/focus
Files in awcodes/focus
Package focus
Short Description Generate consistent documentation screenshots from Laravel Workbench applications using Playwright.
License MIT
Homepage https://github.com/awcodes/focus
Informations about the package focus
Focus

Generate consistent, deterministic documentation screenshots from a package's Laravel Workbench application.
Describe the UI states worth showing in a focus.php manifest, and Focus drives the Workbench with Playwright to produce light and dark PNGs for your documentation. focus() frames a subject intelligently: pass a selector for what matters, and Focus adds padding, grows small subjects to a useful size, and keeps the capture inside the page.
Quick start
This writes docs/assets/editor-light.png and docs/assets/editor-dark.png.
Documentation
Full documentation lives in docs/: installation, configuration, capture modes, interactions, Workbench integration, the CLI, and troubleshooting.
Development
Install dependencies:
composer install
vendor/bin/playwright-install chromium
Run the test suite:
composer test
The browser tests start a small fixture application with PHP's built-in server and drive it with Chromium. They are skipped when the Playwright server is not installed.
License
The MIT License (MIT). Please see License File for more information.
All versions of focus with dependencies
playwright-php/playwright Version ^1.5
symfony/console Version ^6.4|^7.0|^8.0
symfony/process Version ^6.4|^7.0|^8.0