PHP code example of jeroenherczeg / hyena

1. Go to this page and download the library: Download jeroenherczeg/hyena 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/ */

    

jeroenherczeg / hyena example snippets

 php
// config/app.php
'providers' => [
    ...
    Jeroenherczeg\Hyena\HyenaServiceProvider::class,
];
 php
// config/app.php
'aliases' => [
    ...
    Jeroenherczeg\Hyena\Facades\Hyena::class,
];
 php
$result = Hyena::visit('https://github.com')->extract(['name', 'images']);
$result = Hyena::visit('https://github.com')->extract(['name', 'images'], [
    'min_image_width'    => 50, // optional, minimal width of picture in px
    'min_image_height'   => 50, // optional, minimal height of picture in px
    'min_image_filesize' => 16000, // optional, minimal filesize of picture in bytes
    'limit_images'       => 10  // optional, max count of images to return
]);