{"id":17236316,"url":"https://github.com/there4/fogbugz-php-api","last_synced_at":"2025-04-14T02:31:39.493Z","repository":{"id":57068437,"uuid":"1257600","full_name":"there4/fogbugz-php-api","owner":"there4","description":"PHP Wrapper for FogBugz 8 XML API","archived":false,"fork":false,"pushed_at":"2020-10-01T22:38:31.000Z","size":77,"stargazers_count":17,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-27T16:50:36.794Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/there4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-15T13:06:06.000Z","updated_at":"2024-01-26T11:55:57.000Z","dependencies_parsed_at":"2022-08-24T10:20:39.067Z","dependency_job_id":null,"html_url":"https://github.com/there4/fogbugz-php-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Ffogbugz-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Ffogbugz-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Ffogbugz-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Ffogbugz-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/there4","download_url":"https://codeload.github.com/there4/fogbugz-php-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810883,"owners_count":21165195,"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-15T05:35:53.798Z","updated_at":"2025-04-14T02:31:38.847Z","avatar_url":"https://github.com/there4.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FogBugz PHP API [![Maintainability](https://api.codeclimate.com/v1/badges/e1cce9ae79596b454642/maintainability?nc=2)](https://codeclimate.com/github/there4/fogbugz-php-api/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/e1cce9ae79596b454642/test_coverage?nc=2)](https://codeclimate.com/github/there4/fogbugz-php-api/test_coverage) [![Build Status](https://travis-ci.org/there4/fogbugz-php-api.svg?branch=master)](https://travis-ci.org/there4/fogbugz-php-api)\n\u003e PHP Wrapper for FogBugz 8 XML API\n\nSee the api documentation at [XML API Documentation][api-docs]\n\nThis is a small API used to wrap up the FogBugz API into an easy to call\nobject. It allows access to all of the API commands exposed by FogBugz,\nand returns a SimpleXMLElement object for any commands that return data.\n\n## FogBugz CLI\n\nThis project was written in support for a FogBugz command line client.\nCheck out my repo at [there4/fogbugz-php-cli](https://github.com/there4/fogbugz-php-cli)\nfor a working command line tool for FogBugz. You can notate cases,\ntrack time working, and review histories. Try it, you'll like it.\n\n## Sample Code\n\n```php\n\u003c?php\nuse There4\\FogBugz;\n$fogbugz = new FogBugz\\Api(\n    'username@example.com',\n    'password',\n    'http://example.fogbugz.com'\n);\n$fogbugz-\u003elogon();\n$fogbugz-\u003estartWork(array(\n    'ixBug' =\u003e 23442\n));\n```\n\n\n## Sample Code 2 (using FogBugz' API Token)\n\n```php\n\u003c?php\nuse There4\\FogBugz;\n$fogbugz = new FogBugz\\Api(\n    '',\n    '',\n    'http://example.fogbugz.com'\n);\n$fogbugz-\u003esetToken('your_token');\n$fogbugz-\u003estartWork(array(\n    'ixBug' =\u003e 23442\n));\n```\n\n## Magic Methods\n\nThe API uses __call() to make a method for each api endpoint in the FogBugz API.\nFor example, to call the stopWork api endpoint, simple call a method on the\nfogbugz object $fogbugz-\u003estopWork(). If you want to call the api with specific\nparameters, supply those to the function as an associative array, as in the\nsample above.\n\n## Return Format\n\nRemember that the api methods return SimpleXMLElement objects. See the sample.php\nfile for an example of this.\n\n## Changelog\n\n* __1.0.4__: Add `setProxy()` method to the Curl class\n* __1.0.5__: Add `setToken()` method to the Api class\n* __2.0.0__: Upgrade to PHP7 only in testing and update tooling\n\n[api-docs]: https://support.fogbugz.com/hc/en-us/sections/360002378313\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthere4%2Ffogbugz-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthere4%2Ffogbugz-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthere4%2Ffogbugz-php-api/lists"}