PHP code example of awcodes / focus
1. Go to this page and download the library: Download awcodes/focus library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
awcodes / focus example snippets
use Awcodes\Focus\Screenshot;
use Awcodes\Focus\ScreenshotSuite;
return ScreenshotSuite::make()
->screenshots([
Screenshot::make('editor')
->visit('/admin/pages/1/edit')
->focus('[data-focus="editor"]')
->padding(32)
->minSize(500, 300),
]);