{"id":18482851,"url":"https://github.com/spaze/phpstan-stripe","last_synced_at":"2025-08-22T00:31:21.689Z","repository":{"id":37385007,"uuid":"155623056","full_name":"spaze/phpstan-stripe","owner":"spaze","description":"Stripe SDK extension for PHPStan","archived":false,"fork":false,"pushed_at":"2024-07-21T01:47:30.000Z","size":53,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-21T12:52:41.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/spaze.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":"2018-10-31T21:03:13.000Z","updated_at":"2024-08-20T06:45:54.000Z","dependencies_parsed_at":"2023-02-08T14:15:57.266Z","dependency_job_id":"21458a99-b59c-4b44-be5f-0876fa6ba913","html_url":"https://github.com/spaze/phpstan-stripe","commit_stats":{"total_commits":45,"total_committers":5,"mean_commits":9.0,"dds":0.1777777777777778,"last_synced_commit":"6e5debe4f65b15192a28bd01f01670ced8250443"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fphpstan-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fphpstan-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fphpstan-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fphpstan-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaze","download_url":"https://codeload.github.com/spaze/phpstan-stripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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-06T12:31:15.562Z","updated_at":"2024-12-20T06:06:42.351Z","avatar_url":"https://github.com/spaze.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpstan-stripe\nStripe SDK extension for PHPStan\n\n## ~~Looking for a maintainer/EOL~~\nUPDATE: I've found a new maintainer(s), see [the discussion](https://github.com/spaze/phpstan-stripe/discussions/19) so this will probably change hands (and URL) soon. Thanks!\n\n---\n\nAdds particular types replacing `Stripe\\StripeObject` type declaration for many properties in many classes used by the PHP library for the Stripe API.\nSee `extension.neon` for the full list of currently replaced properties.\n\nAlso adds types for properties used only when the object is updated.\nThese are not documented using `@property` tags on the classes (or the types are wrong), and the dev team [feels](https://github.com/stripe/stripe-php/pull/543) it should stay this way.\nHonestly, I'm not sure adding `@property` tags would be the best way either.\n\nPHPStan will obviously flag such property access and this extension will resolve those errors by telling PHPStan such properties exist.\n\nThis extension is not using\n```\nparameters:\n\tuniversalObjectCratesClasses:\n\t\t- Stripe\\StripeObject\n```\nin its configuration because in the SDK, everything `extends StripeObject` (or everything `extends ApiResource` which in turn `extends StripeObject`) so each property your code would read or write would exist, at least for PHPStan.\nAnd I wanted this extension to provide some more precise checks.\n\nIf you don't want to or can't use this extension, add the `universalObjectCratesClasses` config snippet to your `phpstan.neon` and be ready to go.\n\n## Installation\n\nThe package is [hosted on Packagist](https://packagist.org/packages/spaze/phpstan-stripe) so you can install it using [Composer](https://getcomposer.org/):\n\n```\ncomposer require --dev spaze/phpstan-stripe\n```\n\nIf you use [phpstan/extension-installer](https://github.com/phpstan/extension-installer), you are all set!\n\nFor manual installation, add this to your `phpstan.neon`:\n\n```\nincludes:\n\t- vendor/spaze/phpstan-stripe/extension.neon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fphpstan-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaze%2Fphpstan-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fphpstan-stripe/lists"}