PHP code example of zartosht / pixabey

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

    

zartosht / pixabey example snippets



    'providers'     => [

        //...
        Zartosht\Pixabey\PixabeyServiceProvider::class,

    ],



    'aliases'       => [

        //...
        'Pixabey'          => Zartosht\Pixabey\Facades\Pixabey::class,

    ],



    'providers'     => [

        //...
        'Zartosht\Pixabey\PixabeyServiceProvider',

    ],



    'facades'       => [

        //...
        'Pixabey'          => 'Zartosht\Pixabey\Facades\Pixabey',

    ],



    use Ixudra\Curl\Facades\Curl;

    // Get Fashion Images that are safe
    \Zartosht\Pixabey\Facades\Pixabey::Search()->Fashions()->SafeSearch()->get()

    // Get Animal images page 2 by 100 per page pagination
    \Zartosht\Pixabey\Facades\Pixabey::Search()->Animals()->PerPage(100)->get()


class_alias('Zartosht\Pixabey\Facades\Pixabey', 'Pixabey');