{"id":22495052,"url":"https://github.com/invoiced/invoiced-php","last_synced_at":"2025-08-03T02:30:51.458Z","repository":{"id":35988272,"uuid":"40279963","full_name":"Invoiced/invoiced-php","owner":"Invoiced","description":"Official PHP client library for the Invoiced API","archived":false,"fork":false,"pushed_at":"2024-03-19T14:29:13.000Z","size":315,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T03:48:25.178Z","etag":null,"topics":["api","billing","composer","invoiced","php"],"latest_commit_sha":null,"homepage":"https://developer.invoiced.com/api/?php","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/Invoiced.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}},"created_at":"2015-08-06T02:30:29.000Z","updated_at":"2023-06-06T17:00:05.000Z","dependencies_parsed_at":"2024-03-19T15:52:39.448Z","dependency_job_id":null,"html_url":"https://github.com/Invoiced/invoiced-php","commit_stats":{"total_commits":144,"total_committers":8,"mean_commits":18.0,"dds":0.2569444444444444,"last_synced_commit":"006543df326fdc54c4126654ad6d636fbe27fd3c"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invoiced","download_url":"https://codeload.github.com/Invoiced/invoiced-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228517082,"owners_count":17932436,"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":["api","billing","composer","invoiced","php"],"created_at":"2024-12-06T19:20:59.137Z","updated_at":"2024-12-06T19:20:59.773Z","avatar_url":"https://github.com/Invoiced.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"invoiced-php\n========\n\nThis repository contains the PHP client library for the [Invoiced](https://invoiced.com) API.\n\n[![CI](https://github.com/Invoiced/invoiced-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Invoiced/invoiced-php/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/Invoiced/invoiced-php/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/Invoiced/invoiced-php?branch=master)\n[![PHP version](https://badge.fury.io/ph/invoiced%2Finvoiced.svg)](https://badge.fury.io/ph/invoiced%2Finvoiced)\n\n## Installing\n\nThe Invoiced package can be installed with composer:\n\n```\ncomposer require invoiced/invoiced\n```\n\n## Requirements\n\n- PHP 5.5+, PHP 7+, or PHP 8+\n- [Composer](https://getcomposer.org/)\n\n## Usage\n\nFirst, you must instantiate a new client\n\n```php\n$invoiced = new Invoiced\\Client('{API_KEY}');\n```\n\nThen, API calls can be made like this:\n```php\n// retrieve invoice\n$invoice = $invoiced-\u003eInvoice-\u003eretrieve('{INVOICE_ID}');\n\n// mark as paid\n$payment = $invoiced-\u003ePayment-\u003ecreate([\n    'amount' =\u003e $invoice-\u003ebalance,\n    'method' =\u003e 'check',\n    'applied_to' =\u003e [\n        [\n            'type' =\u003e 'invoice',\n            'invoice' =\u003e $invoice-\u003eid,\n            'amount' =\u003e $invoice-\u003ebalance,\n        ],\n    ]\n]);\n```\n\nIf you want to use the sandbox API instead then you must set the second argument on the client to `true` like this:\n\n```php\n$invoiced = new Invoiced\\Client(\"{SANDBOX_API_KEY}\", true);\n```\n\n## Developing\n\nThe test suite can be ran with `phpunit`\n\n## Deploying\n\nIn order to deploy a new version to Packagist, a new release must be created in GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvoiced%2Finvoiced-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-php/lists"}