{"id":22151370,"url":"https://github.com/src-run/stripe-api-bundle","last_synced_at":"2025-03-24T13:21:47.151Z","repository":{"id":62541416,"uuid":"42802319","full_name":"src-run/stripe-api-bundle","owner":"src-run","description":"Symfony bundle that wraps basic functionality of Stripe's API library and configures it as an injected service within your application.","archived":false,"fork":false,"pushed_at":"2015-10-19T15:28:52.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T18:24:05.082Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/src-run.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-20T06:09:55.000Z","updated_at":"2015-10-27T04:57:57.000Z","dependencies_parsed_at":"2022-11-02T15:33:05.576Z","dependency_job_id":null,"html_url":"https://github.com/src-run/stripe-api-bundle","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/src-run%2Fstripe-api-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fstripe-api-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fstripe-api-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fstripe-api-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/src-run","download_url":"https://codeload.github.com/src-run/stripe-api-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276110,"owners_count":20588895,"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-02T00:32:35.786Z","updated_at":"2025-03-24T13:21:47.124Z","avatar_url":"https://github.com/src-run.png","language":"PHP","readme":"# ScribeStripeBundle\n\nSymfony bundle to handle interaction with stripe.com api for payments\n\n## Requirements\n\n- You must register for an account and receive an API key from http://stripe.com/\n- PHP5\n- Curl PHP module\n\n## Installation\n\nAdd the following to your composer.json file in the `require` block:\n\n```\n\"scribe/stripe-bundle\": \"dev-master\"\n```\n\nIssue a `composer.phar update` to download your new package (this command will also update any outdated packages).\n\nTo register the bundle within your application, you must add the bundle to the `AppKernel.php` file within the `$bundles` array:\n\n```\nnew Scribe\\StripeBundle\\ScribeStripeBundle()\n```\n\n## Configuration\n\nEdit your symfony config.yml file and add, at a minimum, the following lines:\n\n```\nscribe_stripe:\n  api_key: your-api-key-goes-here\n```\n\nYou may optionally configure the following items as well (show with their default values):\n\n```\nscribe_stripe:\n  api_key: your-api-key-goes-here\n  verify_ssl_certificates: true\n  log_activity: false\n```\n\n## Usage\n\nMinimal usage:\n\n```php\n$charge = $container-\u003eget('scribe.stripe.charge');\n\ntry {\n\t$charge\n\t\t-\u003esetAmount(10, 00)\n\t\t-\u003esetCardNumber('4242424242424242')\n\t\t-\u003esetCardExperation(01, 16)\n\t\t-\u003esetCardCvc('000')\n\t\t-\u003echarge()\n\t;\n} catch(\\Scribe\\StripeBundle\\Exception\\StripeException $e) {\n\t// handle exception\n}\n\n$response = $charge-\u003egetResponse();\n```\n\nYou can also use a collection of other fields (https://stripe.com/docs/api/php#create_charge) to pass additional data to Stripe.\n\n```php\n$charge = $container-\u003eget('scribe.stripe.charge');\n\ntry {\n    $charge\n        -\u003esetAmount(10, 20)\n        -\u003esetCardNumber('4242424242424242')\n        -\u003esetCardExperation(1, 2016)\n        -\u003esetCardCvc('000')\n        -\u003esetName('First Last')\n        -\u003esetAddressLine01('123 Address Ln.')\n        -\u003esetAddressLine02('Suite 666')\n        -\u003esetCity('City')\n        -\u003esetState('State')\n        -\u003esetZip('12345')\n        -\u003esetCountry('USA')\n        -\u003esetMetadata([\n            'my_client_id'   =\u003e '123456',\n            'something_else' =\u003e 'more info about the customer',\n        ])\n        -\u003esetDescription('A test Stripe charge!')\n        -\u003esetStatementDescription('TEST CHARGE')\n        -\u003esetReceiptEmail('someone@somwhere.com')\n        -\u003echarge()\n    ;\n} catch(\\Scribe\\StripeBundle\\Exception\\StripeException $e) {\n    // handle exception\n}\n\n$response = $charge-\u003egetResponse();\n```\n\n## License\n\nPlease see the LICENSE file distributed with this software.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-run%2Fstripe-api-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrc-run%2Fstripe-api-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-run%2Fstripe-api-bundle/lists"}