{"id":13740775,"url":"https://github.com/conlect/image-iiif","last_synced_at":"2026-01-11T15:57:16.705Z","repository":{"id":32533311,"uuid":"134360793","full_name":"conlect/image-iiif","owner":"conlect","description":"PHP package for the IIIF Image API 3","archived":false,"fork":false,"pushed_at":"2025-01-27T14:20:18.000Z","size":64,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T18:05:55.807Z","etag":null,"topics":["iiif","image","intervention-image","php"],"latest_commit_sha":null,"homepage":"https://iiif.io/api/image/3.0/","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/conlect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-05-22T04:31:11.000Z","updated_at":"2025-01-30T16:44:20.000Z","dependencies_parsed_at":"2024-04-15T12:58:37.148Z","dependency_job_id":"bf7c5e53-a0e9-4268-9009-58d8164a2e1c","html_url":"https://github.com/conlect/image-iiif","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":"0.16666666666666663","last_synced_commit":"2e34a929ea7ca7b62686d6fcb51755f019d1f55b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conlect%2Fimage-iiif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conlect%2Fimage-iiif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conlect%2Fimage-iiif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conlect%2Fimage-iiif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conlect","download_url":"https://codeload.github.com/conlect/image-iiif/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253145072,"owners_count":21861184,"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":["iiif","image","intervention-image","php"],"created_at":"2024-08-03T04:00:52.060Z","updated_at":"2026-01-11T15:57:16.693Z","avatar_url":"https://github.com/conlect.png","language":"PHP","funding_links":[],"categories":["Image API Libraries"],"sub_categories":["Image viewers (Image API only)"],"readme":"[![Latest Version on Packagist](https://img.shields.io/packagist/v/conlect/image-iiif.svg?style=flat-square)](https://packagist.org/packages/conlect/image-iiif)\n[![Tests](https://github.com/conlect/image-iiif/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/conlect/image-iiif/actions/workflows/run-tests.yml)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/conlect/image-iiif/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/conlect/image-iiif/?branch=main)\n[![Total Downloads](https://img.shields.io/packagist/dt/conlect/image-iiif.svg?style=flat-square)](https://packagist.org/packages/conlect/image-iiif)\n\n# Image IIIF\n\nThis package implements the [IIIF Image API 3.0](https://iiif.io/api/image/3.0/), it is unopinionated about implementation and many of the `MUST` features are not included because it does not include an actual implementation only the means to create one. I consider it a bring your own framework solution for implementing Image API 3.0 with PHP. The package utilizes the [Intervention Image](http://image.intervention.io/) package for manipulations. I have provided Intervention filters for each of the 5 IIIF parameters that can be used independently of the `$factory()-\u003eload()-\u003ewithParameters()` pipeline methods.\n\n**Supports all Image Request Parameters:**\n\n-   Region (full || square || x,y,w,h || pct:x,y,w,h)\n-   Size (full || max || w, || ,h || pct:n || w,h || !w,h)\n-   Rotation (n || !n)\n-   Quality (color || gray || default)\n-   Format (jpg || tif || png || gif || webp)\n\nSupports the `info.json` response for an identifier.\n\n#### Laravel image route example:\n\n```php\nRoute::get('iiif/{identifier}/{region}/{size}/{rotation}/{quality}.{format}',\n    function (Request $request) {\n        $parameters = $request-\u003eroute()-\u003eparameters();\n\n        $file = storage_path('app/images/'.$parameters['identifier']);\n\n        $factory = new \\Conlect\\ImageIIIF\\ImageFactory;\n\n        $file = $factory()-\u003eload($file)\n            -\u003ewithParameters($parameters)\n            -\u003estream();\n\n        $response = \\Response::make($file);\n\n        $response-\u003eheader('Content-Type', config(\"iiif.mime.{$parameters['format']}\"));\n\n        return $response;\n    }\n);\n\n```\n\n#### Laravel info route example:\n\n```php\nRoute::get('iiif/{identifier}/info.json',\n    function (Request $request) {\n        $file = storage_path('app/images/'.$request-\u003eidentifier);\n\n        $factory = new \\Conlect\\ImageIIIF\\ImageFactory;\n\n        $info = $factory()-\u003eload($file)\n            -\u003einfo($request-\u003eidentifier);\n\n        return $info;\n    }\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconlect%2Fimage-iiif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconlect%2Fimage-iiif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconlect%2Fimage-iiif/lists"}