{"id":22782195,"url":"https://github.com/randomstate/mint","last_synced_at":"2025-03-30T14:41:29.258Z","repository":{"id":52370448,"uuid":"242192955","full_name":"randomstate/mint","owner":"randomstate","description":"Boilerplate billing integration for Laravel SaaS apps.","archived":false,"fork":false,"pushed_at":"2023-02-02T11:15:20.000Z","size":231,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T16:22:44.799Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/randomstate.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}},"created_at":"2020-02-21T17:20:01.000Z","updated_at":"2022-05-10T17:30:32.000Z","dependencies_parsed_at":"2023-02-17T19:00:59.916Z","dependency_job_id":null,"html_url":"https://github.com/randomstate/mint","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randomstate%2Fmint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randomstate%2Fmint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randomstate%2Fmint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randomstate%2Fmint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/randomstate","download_url":"https://codeload.github.com/randomstate/mint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246333931,"owners_count":20760638,"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-12-11T21:09:46.543Z","updated_at":"2025-03-30T14:41:29.236Z","avatar_url":"https://github.com/randomstate.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n## Installation\n\nRequire the library using composer:\n\n```\ncomposer require randomstate/mint\n```\n\n## Database Migrations\n\nMint provides migrations for the models it uses out of the box. These are automatically registered\nwith laravel. You will need to run `php artisan migrate` to initialize these tables.\n\nThe library assumes your application uses a `users` table that should contain the Stripe customer ID.\nIf you need to customize this, please publish the migrations first.\n\n```\nphp artisan vendor:publish\n```\n\n## Configuration\n\n### Billable Model\n\nAdd the Mint Billable trait to your User model. This will give it access to the fluent interface Mint\nprovides on each customer. If you are charging organisations or teams, publish \u0026  customize the customer\nmigration to point to the appropriate table, and add the Billable trait to your org/team model. \n\n```php\nuse RandomState\\Mint\\Mint\\Billable;\n\nclass User extends Authenticatable\n{\n    use Billable;\n}\n```\n\n### API Keys\n\nAdd your Stripe API Keys to your .env file:\n```dotenv\nSTRIPE_SECRET_KEY=\nSTRIPE_WEBHOOK_SECRET=\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomstate%2Fmint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomstate%2Fmint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomstate%2Fmint/lists"}