{"id":38167716,"url":"https://github.com/gettyimages/gettyimages-api_php","last_synced_at":"2026-01-16T23:23:21.857Z","repository":{"id":46588114,"uuid":"120982311","full_name":"gettyimages/gettyimages-api_php","owner":"gettyimages","description":"Getty Images API SDK - PHP","archived":false,"fork":false,"pushed_at":"2025-11-24T23:29:46.000Z","size":576,"stargazers_count":14,"open_issues_count":1,"forks_count":14,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-11-28T09:56:18.310Z","etag":null,"topics":["getty-images","php","sdk"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gettyimages.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-02-10T03:56:44.000Z","updated_at":"2025-11-24T23:28:31.000Z","dependencies_parsed_at":"2025-11-27T22:00:59.082Z","dependency_job_id":null,"html_url":"https://github.com/gettyimages/gettyimages-api_php","commit_stats":{"total_commits":134,"total_committers":26,"mean_commits":5.153846153846154,"dds":0.8059701492537313,"last_synced_commit":"6303d78e7c4dfded41e4b58a358b65df577b5d74"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/gettyimages/gettyimages-api_php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gettyimages","download_url":"https://codeload.github.com/gettyimages/gettyimages-api_php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28487586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:54:02.790Z","status":"ssl_error","status_checked_at":"2026-01-16T22:50:10.344Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["getty-images","php","sdk"],"created_at":"2026-01-16T23:23:21.132Z","updated_at":"2026-01-16T23:23:21.849Z","avatar_url":"https://github.com/gettyimages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getty Images API SDK - PHP\n[![Build Status](https://travis-ci.org/gettyimages/gettyimages-api_php.svg?branch=master)](https://travis-ci.org/gettyimages/gettyimages-api_php)  \n\n## Introduction\nThis SDK makes using the Getty Images [API](http://developers.gettyimages.com) easy. It handles credential management, makes HTTP requests and is written with a fluent style in mind. For more info about the API, see the [Documentation](https://developers.gettyimages.com/api/).\n\n* Search for images and videos from our extensive creative and editorial catalogs.\n* Get image and video metadata.\n* Download files using your Getty Images products (e.g., Editorial subscriptions, Easy Access, Thinkstock Subscriptions, and Image Packs).\n* Custom Request functionality that allows user to call any endpoint.\n\n## Help \u0026 Support\n\n* [Getty Images API](http://developers.gettyimages.com/)\n* [Issue Tracker](https://github.com/gettyimages/gettyimages-api_php/issues)\n\n## Getting started\n### Obtain an API Key\n\nIf you don't already have an API key, fill out and submit the [contact form](http://engage.gettyimages.com/api-contact) to be connected to our Sales team.\n\n### Installing the package\nThe SDK is available on [Packagist](https://packagist.org/packages/gettyimages/gettyimages-api).\n\n## Examples\nSee [example.md](https://github.com/gettyimages/gettyimages-api_php/blob/master/examples/example.md) for examples.\n\n## Building From Source Code\n_Source code is only needed if you would like to contribute to the project. Otherwise, use the [package](https://packagist.org/packages/gettyimages/gettyimages-api)_\n\n## Initial Setup\n### Assumptions\n* You have PHP \u003e=7.2 setup\n\n### PHP.ini settings to build the code\n    [Phar]\n    ; http://php.net/phar.readonly\n    phar.readonly = Off\n\n\t//Extensions needed for Windows OSs\n\textension=php_curl.dll\n\textension=php_mbstring.dll\n\textension=php_exif.dll\n\textension=php_sockets.dll\n    extension=php_openssl.dll\n\n## Install via Composer\nPlease refer to [README_ComposerInstall.md](./README_ComposerInstall.md)\n\n## Quick Build\nIf everything is setup on your machine where PHP will run, you can most likely run BuildSDK.bat or Build.sh to automatically build the phar. If something fails please read the error messages, PHP can have a finicky setup if you've never tried to use it to build a package before.\n\n### Windows\n\n    build.bat\n\n### Linux / OSX\n\n#### Prerequisites \nOn Ubuntu, you may need to install a few additional packages\n\n```sh\nsudo apt update\nsudo apt install php-xml php-mbstring\n```\n#### Building\n\n```sh\n./build.sh\n```\n\nThis will put GettyImagesApi.phar in a build folder. Then you can use the package as you would any other phar.\n\nThe build does a few things for you automatically\n\n1. Determines if you have composer.phar and will retrieve it if you don't have it\n1. Runs `composer install` to get dependencies that are outlined in the composer.json file\n1. Then produces the phar file in ./build/GettyImagesApi.phar\n\n## Manually Installing PHP libraries\n\nBuildSDK should get all the dependencies for you but if you want to do the update without a build\nFrom the root of the repository\n\n    php composer.phar install\n\n### If you want the test dependencies\n\n    php composer.phar install --require-dev\n\nThis command should install PHPUnit and any other php dependency libraries\n\n\n## Environment variables of interest\n\nThe sdk does support using a proxy directly as well as ignoring ssl validation errors. This can be configured through the existense environment variables\n\n    GettyImagesApi_IgnoreSSLValidation\n    GettyImagesApi_UseProxy\n\n### *nix Shell Example:\n\n    export GettyImagesApi_IgnoreSSLValidation=TRUE\n    export GettyImagesApi_UseProxy=127.0.0.0:8888\n\n### Windows CMD Example:\n\n    set GettyImagesApi_IgnoreSSLValidation=TRUE\n    set GettyImagesApi_UseProxy=127.0.0.0:8888\n\n### Powershell Example\n\n    $env:GettyImagesApi_IgnoreSSLValidation=TRUE\n    $env:GettyImagesApi_UseProxy=\"127.0.0.0:8888\"\n\n## Tests\n\n### Running unit tests\nThe test project contains unit tests written using the [PHPUnit Framwork](https://phpunit.de/index.html).\n\n### Execute the unit tests\n#### Assumptions\n* You have PHPUnit installed\n\nTo execute all of the unit tests:\n    ./vendor/bin/phpunit --bootstrap vendor/autoload.php unitTests/.\n\nTo execute one test class:\n    ./vendor/bin/phpunit --bootstrap vendor/autoload.php unitTests/EXAMPLETEST\n\n\n## Maintainers\n\nTo publish a new version to\n[Packagist](https://packagist.org/packages/gettyimages/gettyimages-api),\ncreate a new release with an updated tag. A webhook will notify Packagist\nto grab the latest version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettyimages%2Fgettyimages-api_php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgettyimages%2Fgettyimages-api_php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettyimages%2Fgettyimages-api_php/lists"}