pexels.com sayt uchun api

v1.0.0 2023-01-14 17:41 UTC

This package is auto-updated.

Last update: 2024-12-14 21:49:01 UTC


README

Installing

composer require jamshidbekakhlidinov/pixels-api

Example code

<?php
    include "vendor/autoload.php";
    use jamshidbekakhlidinov\PixelsAPI;

    $api = new PixelsAPI();
    $api->page = rand(1,$api->per_page);
    $text = "wolf";
    $json_photos = $api->search($text);
    $photos = json_decode($json_photos, true);
    print_r($photos);
?>