{"id":18896132,"url":"https://github.com/tinify/tinify-php","last_synced_at":"2025-05-16T08:05:05.502Z","repository":{"id":32104090,"uuid":"35676360","full_name":"tinify/tinify-php","owner":"tinify","description":"PHP client for the Tinify API.","archived":false,"fork":false,"pushed_at":"2023-03-02T15:15:25.000Z","size":531,"stargazers_count":234,"open_issues_count":4,"forks_count":51,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-04T07:03:30.672Z","etag":null,"topics":["image-compression","image-optimization","php","tinify-api","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com/developers","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/tinify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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}},"created_at":"2015-05-15T13:46:24.000Z","updated_at":"2024-06-18T10:58:48.987Z","dependencies_parsed_at":"2024-06-18T10:58:48.779Z","dependency_job_id":"405a63b9-2255-4a23-94ba-0870c3a3fd22","html_url":"https://github.com/tinify/tinify-php","commit_stats":{"total_commits":88,"total_committers":9,"mean_commits":9.777777777777779,"dds":0.375,"last_synced_commit":"1d23f5069f450dc33dd062083a825be2baed48ea"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinify","download_url":"https://codeload.github.com/tinify/tinify-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"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-compression","image-optimization","php","tinify-api","tinyjpg","tinypng"],"created_at":"2024-11-08T08:32:38.769Z","updated_at":"2025-05-16T08:05:00.480Z","avatar_url":"https://github.com/tinify.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/tinify/tinify-php/blob/main/LICENSE)\n[![CI_CD](https://github.com/tinify/tinify-php/actions/workflows/ci-cd.yaml/badge.svg?branch=master)](https://github.com/tinify/tinify-php/actions/workflows/ci-cd.yaml)\n[![Packagist Version](https://img.shields.io/packagist/v/tinify/tinify)](https://packagist.org/packages/tinify/tinify)\n[![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/tinify/tinify)](https://packagist.org/packages/tinify/tinify)\n\n# Tinify API client for PHP\n\nPHP client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at [http://tinify.com](http://tinify.com).\n\n## Documentation\n\n[Go to the documentation for the PHP client](https://tinypng.com/developers/reference/php).\n\n## Installation\n\nInstall the API client with Composer. Add this to your `composer.json`:\n\n```json\n{\n  \"require\": {\n    \"tinify/tinify\": \"*\"\n  }\n}\n```\n\nThen install with:\n\n```\ncomposer install\n```\n\nUse autoloading to make the client available in PHP:\n\n```php\nrequire_once(\"vendor/autoload.php\");\n```\n\n## Usage\n\n```php\nTinify\\setKey(\"YOUR_API_KEY\");\nTinify\\fromFile(\"unoptimized.png\")-\u003etoFile(\"optimized.png\");\n```\n\n## Running tests\n\n```\ncomposer install\nvendor/bin/phpunit\n```\n\n### Integration tests\n\n```\ncomposer install\nTINIFY_KEY=$YOUR_API_KEY vendor/bin/phpunit --no-configuration test/integration.php\n```\n\n## License\n\nThis software is licensed under the MIT License. [View the license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinify%2Ftinify-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-php/lists"}