{"id":26178703,"url":"https://github.com/linkorb/ticketbox-client","last_synced_at":"2026-04-11T16:07:42.977Z","repository":{"id":62517403,"uuid":"42716669","full_name":"linkorb/ticketbox-client","owner":"linkorb","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-24T14:52:52.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-06T03:05:43.526Z","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/linkorb.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":"2015-09-18T11:04:55.000Z","updated_at":"2015-09-18T11:12:27.000Z","dependencies_parsed_at":"2022-11-02T13:45:46.507Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/ticketbox-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fticketbox-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fticketbox-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fticketbox-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fticketbox-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/ticketbox-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243119682,"owners_count":20239319,"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":"2025-03-11T21:42:10.308Z","updated_at":"2025-12-24T16:42:57.715Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TicketBox Client\n\nCreate tickets for TicketBox and view activities from your application\n\n## Installation\n\n```\ncomposer require linkorb/ticketbox-client\n```\n\n## Example\n\nCreate Client \n\n```php\nrequire_once __DIR__ . '/../vendor/autoload.php'; \n\nuse Linkorb\\TicketBoxClient\\Client as Client;\nuse Linkorb\\TicketBoxClient\\Ticket as Ticket;\n\n// get the client\n$client = new Client(\n    'http://tickets.dev/api/v1/',\n    \u003cusername\u003e,\n    \u003cpassword\u003e\n);\n```\nCreate Ticket by logged in User\n\n```php\n// Create Ticket with Logged in user\n$ticket = new Ticket( $client ); // padidng client\n$ticket-\u003esetSubject(\u003cticket subject\u003e);\n$ticket-\u003esetDescription(\u003cticket descripton\u003e);\n\ntry {\n\t$ticket-\u003ecreate(); \n} catch( Exception $e ) {\n\techo $e-\u003egetMessage();\n} \n```\n\nCreate ticket by Anonymous user\n\n```php\n// Create Anon Ticket\n$ticket = new Ticket( $client );\n$ticket-\u003esetSubject(\u003cticket subject\u003e);\n$ticket-\u003esetDescription(\u003cticket descripton\u003e);\n$ticket-\u003esetUser(\u003cticket user full name\u003e);\n$ticket-\u003esetEmail(\u003cticket email\u003e);\n$ticket-\u003esetPhone(\u003cticket phone\u003e);\n$ticket-\u003esetOrg(\u003cticket org\u003e);\n\ntry {\n\t$ticket-\u003ecreate(); \n} catch( Exception $e ) {\n\techo $e-\u003egetMessage();\n} \n```\n\nGet Ticket \u0026 its activities\n\n```php\n// Create Anon Ticket\n$ticket = new Ticket( $client );\n\n$ticket-\u003eget(\u003cticket id\u003e);\necho $ticket-\u003egetSubject(); // all the field null if not found. \n\n$activities = $ticket-\u003egetActivity(); // get activities\nvar_dump($activities);\n```\n\nChange status of ticket \n\n```php\n// Get ticket\n$ticket = new Ticket( $client );\n$ticket-\u003eget(5);\n\ntry {\n\t$ticket-\u003esetPending(); \n\t// $ticket-\u003esetClose(); \n\t// $ticket-\u003esetSchedule(); \n\n} catch ( Exception $e ) {\n\techo $e-\u003egetMessage();\n}\n```\n\nMessage ticket\n\n```php\n// Get ticket\n$ticket = new Ticket( $client );\n$ticket-\u003eget(\u003cticket id\u003e);\n\ntry {\n\t\n\t$ticket-\u003emessage( \u003cticket message\u003e ); \n\n} catch ( Exception $e ) {\n\techo $e-\u003egetMessage();\n}\n```\n\nTransfer Ticket\n\n```php\n// Get ticket\n$ticket = new Ticket( $client );\n$ticket-\u003eget(\u003cticket id\u003e);\n\ntry {\n\t$ticket-\u003etransfer(\u003cqueue id\u003e); \n} catch ( Exception $e ) {\n\techo $e-\u003egetMessage();\n}\n```\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [engineering.linkorb.com](http://engineering.linkorb.com).\n\nBtw, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fticketbox-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fticketbox-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fticketbox-client/lists"}