{"id":22862189,"url":"https://github.com/webforge-labs/webforge-accounting","last_synced_at":"2025-03-31T08:45:25.224Z","repository":{"id":11902045,"uuid":"14465740","full_name":"webforge-labs/webforge-accounting","owner":"webforge-labs","description":"A small library for some basics for invoices","archived":false,"fork":false,"pushed_at":"2013-11-18T09:51:49.000Z","size":140,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T13:19:29.024Z","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/webforge-labs.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}},"created_at":"2013-11-17T11:37:36.000Z","updated_at":"2016-08-10T03:01:44.000Z","dependencies_parsed_at":"2022-09-10T12:21:41.221Z","dependency_job_id":null,"html_url":"https://github.com/webforge-labs/webforge-accounting","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/webforge-labs%2Fwebforge-accounting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webforge-labs%2Fwebforge-accounting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webforge-labs%2Fwebforge-accounting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webforge-labs%2Fwebforge-accounting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webforge-labs","download_url":"https://codeload.github.com/webforge-labs/webforge-accounting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443524,"owners_count":20778247,"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-13T10:12:37.443Z","updated_at":"2025-03-31T08:45:25.204Z","avatar_url":"https://github.com/webforge-labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accounting\n\n[![Build Status](https://travis-ci.org/webforge-labs/webforge-accounting.png)](https://travis-ci.org/webforge-labs/webforge-accounting)  \n[![Coverage Status](https://coveralls.io/repos/webforge-labs/webforge-accounting/badge.png?branch=master)](https://coveralls.io/r/webforge-labs/webforge-accounting?branch=master)  \n[![Latest Stable Version](https://poser.pugx.org/webforge/accounting/version.png)](https://packagist.org/packages/webforge/accounting)  \n\nA small library for some basics for invoices\n\n## Prices\n\nThe `Webforge\\Accounting\\Price` class will help you with some calculation basics:\n\n```php\n$price = new Price(4284, Price::GROSS, 0.19);\n\n$this-\u003eassertEquals(4284, $price-\u003egetGross());\n$this-\u003eassertEquals(3600, $price-\u003egetNet());\n$this-\u003eassertEquals(0.19, $price-\u003egetTax());\n$this-\u003eassertEquals(684, $price-\u003egetTaxValue()); // = 4284-3600\n\n// or construct it the other way round:\n$price = new Price(3600, Price::NET, 0.19);\n$this-\u003eassertEquals(4284, $price-\u003egetGross());\n$this-\u003eassertEquals(3600, $price-\u003egetNet());\n$this-\u003eassertEquals(0.19, $price-\u003egetTax());\n$this-\u003eassertEquals(684, $price-\u003egetTaxValue()); // = 4284-3600\n```\n\nYou can provide prices without taxes:\n```php\n$price = new Price(4284, Price::GROSS, Price::NO_TAXES);\n\n$this-\u003eassertEquals(4284, $price-\u003egetGross());\n$this-\u003eassertEquals(4284, $price-\u003egetNet());\n$this-\u003eassertEquals(0, $price-\u003egetTax());\n$this-\u003eassertEquals(0, $price-\u003egetTaxValue());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebforge-labs%2Fwebforge-accounting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebforge-labs%2Fwebforge-accounting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebforge-labs%2Fwebforge-accounting/lists"}