{"id":16085728,"url":"https://github.com/infinitypaul/cbs-php","last_synced_at":"2025-07-25T21:12:16.771Z","repository":{"id":52721829,"uuid":"359725365","full_name":"infinitypaul/cbs-php","owner":"infinitypaul","description":"A PHP Package for working with central billing system seamlessly","archived":false,"fork":false,"pushed_at":"2021-04-20T08:17:35.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T09:50:04.629Z","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/infinitypaul.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-20T07:34:12.000Z","updated_at":"2021-08-17T12:58:14.000Z","dependencies_parsed_at":"2022-08-21T13:50:18.561Z","dependency_job_id":null,"html_url":"https://github.com/infinitypaul/cbs-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fcbs-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fcbs-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fcbs-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fcbs-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinitypaul","download_url":"https://codeload.github.com/infinitypaul/cbs-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345713,"owners_count":20924098,"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-09T13:09:10.167Z","updated_at":"2025-04-05T13:42:21.395Z","avatar_url":"https://github.com/infinitypaul.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CBS FOR PHP\n\n[comment]: \u003c\u003e ([![Latest Version on Packagist]\u0026#40;https://img.shields.io/packagist/v/infinitypaul/cbs-php.svg?style=flat-square\u0026#41;]\u0026#40;https://packagist.org/packages/infinitypaul/cbs-php\u0026#41;)\n\n[comment]: \u003c\u003e ([![Build Status]\u0026#40;https://img.shields.io/travis/infinitypaul/cbs-php/master.svg?style=flat-square\u0026#41;]\u0026#40;https://travis-ci.org/infinitypaul/cbs-php\u0026#41;)\n\n[comment]: \u003c\u003e ([![Quality Score]\u0026#40;https://img.shields.io/scrutinizer/g/infinitypaul/cbs-php.svg?style=flat-square\u0026#41;]\u0026#40;https://scrutinizer-ci.com/g/infinitypaul/cbs-php\u0026#41;)\n\n[comment]: \u003c\u003e ([![Total Downloads]\u0026#40;https://img.shields.io/packagist/dt/infinitypaul/cbs-php.svg?style=flat-square\u0026#41;]\u0026#40;https://packagist.org/packages/infinitypaul/cbs-php\u0026#41;)\n\nA PHP Package for working with central billing system seamlessly\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require infinitypaul/cbs-php\n```\n\n## Usage\n\n``` php\nInfinitypaul\\Cbs\\Cbs::setup([\n        'staging' =\u003e 'staging base url',\n        'live' =\u003e 'live base url'],\n        'Secrey Key',\n        'Client ID', 'Mode =  staging or live');\n        \n     //To redirect to CBS Payment Gateway   \n        \\Infinitypaul\\Cbs\\CbsCall::addBody('RevenueHeadId', 1)\n        -\u003eaddBody('TaxEntityInvoice', [\n            'Amount' =\u003e 1000,\n            \"InvoiceDescription\" =\u003e \"talosopekope\",\n            \"AdditionalDetails\" =\u003e [],\n            \"CategoryId\" =\u003e 1,\n            \"TaxEntity\" =\u003e [\n            'Recipient' =\u003e 'Tax Payer',\n            'Email' =\u003e 'infinitypaul@live.com',\n            'Address' =\u003e 'api Local',\n            'PhoneNumber' =\u003e '0903636363',\n            'TaxPayerIdentificationNumber' =\u003e '736363',\n            'RCNumber' =\u003e null,\n            'PayerId' =\u003e null\n        ]])\n        -\u003eaddBody('ExternalRefNumber', 373737373)\n        -\u003eaddBody('RequestReference', 'jdjd783')\n        -\u003eaddBody('CallBackURL', 'https://coeakwanga.edu.ng/controller/plugin/cbs/verify.php')\n        -\u003egetAuthorizationUrl()\n        -\u003eredirectNow();\n        \n        //Get Data\n        \\Infinitypaul\\Cbs\\CbsCall::addBody('RevenueHeadId', 1)\n        -\u003eaddBody('TaxEntityInvoice', [\n            'Amount' =\u003e 1000,\n            \"InvoiceDescription\" =\u003e \"talosopekope\",\n            \"AdditionalDetails\" =\u003e [],\n            \"CategoryId\" =\u003e 1,\n            \"TaxEntity\" =\u003e [\n            'Recipient' =\u003e 'Tax Payer',\n            'Email' =\u003e 'infinitypaul@live.com',\n            'Address' =\u003e 'api Local',\n            'PhoneNumber' =\u003e '0903636363',\n            'TaxPayerIdentificationNumber' =\u003e '736363',\n            'RCNumber' =\u003e null,\n            'PayerId' =\u003e null\n        ]])\n        -\u003eaddBody('ExternalRefNumber', 373737373)\n        -\u003eaddBody('RequestReference', 'jdjd783')\n        -\u003eaddBody('CallBackURL', 'https://coeakwanga.edu.ng/controller/plugin/cbs/verify.php')\n        -\u003egetAuthorizationUrl()\n        -\u003egetData();\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email infinitypaul@live.com instead of using the issue tracker.\n\n## Credits\n\n- [Paul Edward](https://github.com/infinitypaul)\n- [All Contributors](../../contributors)\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%2Finfinitypaul%2Fcbs-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitypaul%2Fcbs-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitypaul%2Fcbs-php/lists"}