{"id":14974923,"url":"https://github.com/sapientpro/image-comparator-laravel","last_synced_at":"2025-08-03T01:21:04.769Z","repository":{"id":161501343,"uuid":"632432369","full_name":"sapientpro/image-comparator-laravel","owner":"sapientpro","description":"Compare images using Laravel","archived":false,"fork":false,"pushed_at":"2024-09-20T12:00:10.000Z","size":2947,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T19:41:09.173Z","etag":null,"topics":["image-comparison","image-hashing","laravel","laravel8","laravel9","php","php8"],"latest_commit_sha":null,"homepage":"","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/sapientpro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T11:53:51.000Z","updated_at":"2024-09-20T11:52:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2003cf53-87d3-4205-8c17-dda0281c8655","html_url":"https://github.com/sapientpro/image-comparator-laravel","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"512fbfb8294d615bee9049a32387f59d48e85d8f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Fimage-comparator-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Fimage-comparator-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Fimage-comparator-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Fimage-comparator-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapientpro","download_url":"https://codeload.github.com/sapientpro/image-comparator-laravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861468,"owners_count":16555994,"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-comparison","image-hashing","laravel","laravel8","laravel9","php","php8"],"created_at":"2024-09-24T13:51:16.272Z","updated_at":"2024-10-11T11:21:05.773Z","avatar_url":"https://github.com/sapientpro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Comparator Laravel: Compare images using Laravel\n\n![https://packagist.org/packages/sapientpro/image-comparator-laravel](https://img.shields.io/packagist/dt/sapientpro/image-comparator-laravel)\n![https://packagist.org/packages/sapientpro/image-comparator-laravel](https://img.shields.io/packagist/v/sapientpro/image-comparator-laravel)\n![https://packagist.org/packages/sapientpro/image-comparator-laravel](https://img.shields.io/packagist/l/sapientpro/image-comparator-laravel)\n\nThis package is a wrapper of [Image Comparator package](https://github.com/sapientpro/image-comparator)\nadapted to use with Laravel via Facade. All methods of Image Comparator are available in the Facade.\nFor the method reference visit the [wiki](https://github.com/sapientpro/image-comparator/wiki)\n\n## Prerequisites\n* php 8.1 or higher\n* Laravel 8 or higher\n* Gd extension enabled\n\n## Installation\n\nYou can install the package using Composer:\n`composer require sapientpro/image-comparator-laravel`\n\n## Usage\n\nYou can start using the Image Comparator Facade by including it in your class:\n\n```php\nuse SapientPro\\ImageComparatorLaravel\\Facades\\Comparator;\n\n$imageHash = Comparator::hashImage('path_to_image.jpg')\n```\n\nBy default, the average hashing algorithm is user for hashing and comparing images.\nIf you want to use difference hashing algorithm, you set it with `setHashStrategy()` function:\n\n```php\nuse SapientPro\\ImageComparatorLaravel\\Facades\\Comparator;\nuse SapientPro\\ImageComparator\\Strategy\\DifferenceHashStrategy;\n\nComparator::setHashStrategy(new DifferenceHashStrategy());\n\n$similarity = Comparator::compare('path_to_image1.jpg', 'path_to_image2.jpg') // will use difference hash algorithm\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapientpro%2Fimage-comparator-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapientpro%2Fimage-comparator-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapientpro%2Fimage-comparator-laravel/lists"}