{"id":19430579,"url":"https://github.com/mrzstack/purchase-key-guard","last_synced_at":"2025-04-24T18:33:50.261Z","repository":{"id":257825841,"uuid":"872304272","full_name":"jmrashed/purchase-key-guard","owner":"jmrashed","description":"A Laravel package to protect usage via a purchase key","archived":false,"fork":false,"pushed_at":"2024-10-14T08:24:58.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T09:24:59.955Z","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/jmrashed.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}},"created_at":"2024-10-14T07:55:26.000Z","updated_at":"2024-10-14T08:24:47.000Z","dependencies_parsed_at":"2024-10-20T13:18:51.074Z","dependency_job_id":null,"html_url":"https://github.com/jmrashed/purchase-key-guard","commit_stats":null,"previous_names":["jmrashed/purchase-key-guard"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fpurchase-key-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fpurchase-key-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fpurchase-key-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fpurchase-key-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/purchase-key-guard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223963657,"owners_count":17232717,"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-11-10T14:25:37.522Z","updated_at":"2025-04-24T18:33:44.928Z","avatar_url":"https://github.com/jmrashed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purchase Key Guard\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/jmrashed/purchase-key-guard.svg?style=flat-square)](https://packagist.org/packages/jmrashed/purchase-key-guard)\n[![Total Downloads](https://img.shields.io/packagist/dt/jmrashed/purchase-key-guard.svg?style=flat-square)](https://packagist.org/packages/jmrashed/purchase-key-guard)\n\n## Introduction\n\n**Purchase Key Guard** is a Laravel package that helps protect your Laravel application from unauthorized use by validating a purchase key. It uses middleware to ensure that the application can only be used with a valid purchase key, making it a great solution for commercial or licensed applications.\n\n## Features\n\n- Middleware to validate purchase keys.\n- API support for key validation.\n- Easy-to-configure purchase key service.\n- Customizable via configuration file.\n- Integration with Laravel service providers and facades.\n- Includes artisan commands for key management.\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require jmrashed/purchase-key-guard\n```\n\nOnce installed, publish the configuration file using the following command:\n\n```bash\nphp artisan vendor:publish --provider=\"Jmrashed\\PurchaseKeyGuard\\Providers\\PurchaseKeyGuardServiceProvider\" --tag=\"config\"\n```\n\nThis will create a `purchase_key.php` configuration file in your `config/` directory.\n\n## Usage\n\nAfter installation, the package adds middleware to validate the purchase key. Add the middleware to your `app/Http/Kernel.php`:\n\n```php\nprotected $middlewareGroups = [\n    'web' =\u003e [\n        // other middleware\n        \\Jmrashed\\PurchaseKeyGuard\\Http\\Middleware\\VerifyPurchaseKey::class,\n    ],\n];\n```\n\nYou can also use the provided `PurchaseKeyService` to programmatically verify purchase keys.\n\n## Configuration\n\nYou can modify the configuration by editing the `purchase_key.php` file. Here, you can set the default key, API settings, and more.\n\n```php\nreturn [\n    'key' =\u003e env('PURCHASE_KEY', 'your-purchase-key-here'),\n];\n```\n\n## Testing\n\nTo run the package tests, simply execute:\n\n```bash\ncomposer test\n```\n\n## License\n\nThe MIT License (MIT). Please see the [LICENSE](LICENSE) file for more details. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzstack%2Fpurchase-key-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrzstack%2Fpurchase-key-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzstack%2Fpurchase-key-guard/lists"}