{"id":15660365,"url":"https://github.com/chiiya/laravel-passes","last_synced_at":"2025-03-31T11:01:32.109Z","repository":{"id":41873633,"uuid":"466156946","full_name":"chiiya/laravel-passes","owner":"chiiya","description":"Laravel package for creating iOS and Android Wallet Passes.","archived":false,"fork":false,"pushed_at":"2025-02-24T11:44:16.000Z","size":64,"stargazers_count":25,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T23:12:17.682Z","etag":null,"topics":[],"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/chiiya.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"chiiya"}},"created_at":"2022-03-04T14:36:43.000Z","updated_at":"2025-03-16T16:59:19.000Z","dependencies_parsed_at":"2025-02-28T06:11:56.851Z","dependency_job_id":"9b8f78de-fb57-472f-8321-f9d90e80944d","html_url":"https://github.com/chiiya/laravel-passes","commit_stats":{"total_commits":27,"total_committers":4,"mean_commits":6.75,"dds":0.5555555555555556,"last_synced_commit":"594e8b35b0eb3c1e900f7f1de7ecc83096f22fb9"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiiya%2Flaravel-passes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiiya%2Flaravel-passes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiiya%2Flaravel-passes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiiya%2Flaravel-passes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chiiya","download_url":"https://codeload.github.com/chiiya/laravel-passes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246457967,"owners_count":20780676,"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":[],"created_at":"2024-10-03T13:21:19.859Z","updated_at":"2025-03-31T11:01:32.090Z","avatar_url":"https://github.com/chiiya.png","language":"PHP","funding_links":["https://github.com/sponsors/chiiya"],"categories":[],"sub_categories":[],"readme":"# Laravel Passes\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/chiiya/laravel-passes.svg?style=flat-square)](https://packagist.org/packages/chiiya/laravel-passes)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/chiiya/laravel-passes/lint?label=code%20style)](https://github.com/chiiya/laravel-passes/actions?query=workflow%3Alint+branch%3Amaster)\n[![Total Downloads](https://img.shields.io/packagist/dt/chiiya/laravel-passes.svg?style=flat-square)](https://packagist.org/packages/chiiya/laravel-passes)\n\nLaravel package for creating iOS and Android Wallet Passes.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require chiiya/laravel-passes\n```\n\nPublish the configuration files with:\n\n```bash\nphp artisan vendor:publish --tag=\"passes-config\"\n```\n\n## Usage\n\nThis package is a thin wrapper around [chiiya/passes](https://github.com/chiiya/passes), that allows you to directly\ninject the Google repositories or Apple `PassFactory` in your application:\n\n```php\npublic function __construct(\n    private OfferClassRepository $offers,\n    private PassFactory $apple,\n)\n\npublic function handle(): void\n{\n    $this-\u003eapple-\u003ecreate(...);\n    $this-\u003eoffers-\u003eget(...);\n}\n```\n\nYou may also use the `PassBuilder` class, which is an entry point to all pass building functionalities and contains\na helper method for creating a signed Google JWT:\n\n```php\nuse Chiiya\\LaravelPasses\\PassBuilder;\n\npublic function __construct(\n    private PassBuilder $builder,\n)\n\npublic function handle(): void\n{\n    $this-\u003ebuilder-\u003eapple()-\u003ecreate(...);\n    $this-\u003ebuilder-\u003egoogle()-\u003eofferClasses()-\u003ecreate(...);\n    $this-\u003ebuilder-\u003egoogle()-\u003ecreateJWT()-\u003eaddOfferObject(...)-\u003esign();\n}\n```\n\nFor documentation on method signatures, check out [chiiya/passes](https://github.com/chiiya/passes).\n\n## Testing\n\nSince this package uses the Laravel HTTP Client under the hood to perform API requests,\nyou may simply call `Http::fake()` to fake responses in your tests. For mocking specific responses,\ncheck out the [example responses](https://github.com/chiiya/passes/tree/master/tests/Google/Fixtures/responses).\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiiya%2Flaravel-passes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiiya%2Flaravel-passes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiiya%2Flaravel-passes/lists"}