{"id":15025771,"url":"https://github.com/ph-7/image-unsplash","last_synced_at":"2025-07-28T19:35:12.451Z","repository":{"id":57038418,"uuid":"101568830","full_name":"pH-7/Image-Unsplash","owner":"pH-7","description":":framed_picture: Get easily any Unsplash images with a clean PHP class.  It's a really lightweight class that helps to get easily any images from Unsplash.com while keeping your project clean.","archived":false,"fork":false,"pushed_at":"2017-12-11T23:54:34.000Z","size":13,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:03:57.658Z","etag":null,"topics":["image","library","lightweight","photo","photography","photos","php-71","php71","picture","unsplash","unsplash-api","unsplash-client","unsplash-helper"],"latest_commit_sha":null,"homepage":"https://github.com/pH-7/Image-Unsplash","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-27T17:30:13.000Z","updated_at":"2025-01-06T02:53:27.000Z","dependencies_parsed_at":"2022-08-24T00:51:13.975Z","dependency_job_id":null,"html_url":"https://github.com/pH-7/Image-Unsplash","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FImage-Unsplash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FImage-Unsplash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FImage-Unsplash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FImage-Unsplash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/Image-Unsplash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","library","lightweight","photo","photography","photos","php-71","php71","picture","unsplash","unsplash-api","unsplash-client","unsplash-helper"],"created_at":"2024-09-24T20:02:59.529Z","updated_at":"2025-04-09T20:04:04.269Z","avatar_url":"https://github.com/pH-7.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unsplash Helper\n\n## Get Unsplash Images Easily\n\nGet easily any Unsplash images with a clean PHP class.\n\nIt's a really lightweight and simple PHP class that helps you to get easily any images from Unsplash.com while keeping your project clean.\n\n\n## Example\n\n```php\nuse PH7\\Image\\Unsplash;\n\n$unsplash = new Unsplash();\n$unsplash-\u003esetWidth(600)\n    -\u003esetHeight(400)\n    -\u003esetQuality(80)\n    -\u003esetImageId('photo-1462045504115-6c1d931f07d1');\n\necho '\u003cimg src=\"' . $unsplash-\u003egetImage() . '\"\u003e';\n\n$unsplash-\u003esetImageId('photo-1500045992661-f978470eaf7b');\n$unsplash-\u003esetFit(Unsplash::MAX_FIT);\n\necho '\u003cimg src=\"' . $unsplash-\u003egetImage() . '\"\u003e';\n```\n\n\n##  Installation\n\n1. Install Composer (https://getcomposer.org)\n2. Include it in your project:\n```bash\ncomposer require ph-7/image-unsplash\n ```\n\n\n## Requirements\n\n* PHP 7.1 or higher\n* [Composer](https://getcomposer.org)\n\n\n## Author\n\nMade with ♥ and care by [Pierre-Henry Soria](http://ph7.me)\n\n\n## License\n\n[MIT License](https://opensource.org/licenses/mit-license.php). Enjoy! :smiley:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fimage-unsplash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fimage-unsplash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fimage-unsplash/lists"}