{"id":15304856,"url":"https://github.com/sooluh/papercups","last_synced_at":"2026-01-07T02:05:02.868Z","repository":{"id":57055888,"uuid":"394193810","full_name":"sooluh/papercups","owner":"sooluh","description":":headphones: Unofficial Papercups PHP library provides convenient access to the Papercups API from applications written in server-side PHP.","archived":false,"fork":false,"pushed_at":"2023-05-24T06:24:19.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T20:39:56.275Z","etag":null,"topics":["chat-widget","customer-support","hacktoberfest","hacktoberfest2022","help-desk","intercom","livechat","papercups","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/sooluh/papercups","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/sooluh.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":"2021-08-09T07:28:59.000Z","updated_at":"2023-07-18T09:06:19.000Z","dependencies_parsed_at":"2022-08-24T06:01:01.958Z","dependency_job_id":null,"html_url":"https://github.com/sooluh/papercups","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooluh%2Fpapercups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooluh%2Fpapercups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooluh%2Fpapercups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooluh%2Fpapercups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sooluh","download_url":"https://codeload.github.com/sooluh/papercups/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892152,"owners_count":20689451,"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":["chat-widget","customer-support","hacktoberfest","hacktoberfest2022","help-desk","intercom","livechat","papercups","php"],"created_at":"2024-10-01T07:58:18.327Z","updated_at":"2026-01-07T02:05:02.808Z","avatar_url":"https://github.com/sooluh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Papercups PHP\n\n[![Latest Stable Version](http://poser.pugx.org/sooluh/papercups/v)](https://packagist.org/packages/sooluh/papercups)\n[![Total Downloads](http://poser.pugx.org/sooluh/papercups/downloads)](https://packagist.org/packages/sooluh/papercups)\n[![Latest Unstable Version](http://poser.pugx.org/sooluh/papercups/v/unstable)](https://packagist.org/packages/sooluh/papercups)\n[![License](http://poser.pugx.org/sooluh/papercups/license)](https://packagist.org/packages/sooluh/papercups)\n\nUnofficial Papercups PHP library provides convenient access to the Papercups API from applications written in server-side PHP.\n\n## Requirements\n\n- PHP \u003e= 7.3\n- Composer\n\n## Features\n\n- PSR-4 autoloading compliant structure\n- PSR-2 compliant code style\n- Easy to use with any framework or even a plain php file\n- Useful tools for better code included\n\n## Installation\n\nInstall the package with:\n\n```sh\ncomposer require sooluh/papercups\n```\n\n## Usage\n\nThe package needs to be configured with an API key, which is available in the [Papercups dashboard](https://app.papercups.io/developers/personal-api-keys). Require the package with the key's value:\n\n```php\n\u003c?php\n// make sure composer dependencies have been installed\nrequire __DIR__ . '/vendor/autoload.php';\n\n$papercups = new \\Papercups\\Client('PAPERCUPS_API_KEY');\n\n$response = $papercups-\u003emessages()-\u003ecreate([\n    'body' =\u003e 'Hello world!',\n    'conversation_id' =\u003e '...'\n]);\n\nprint_r($response);\n```\n\nIf you're self-hosting Papercups on a different server, you can specify the API host:\n\n```php\n$papercups = new \\Papercups\\Client('PAPERCUPS_API_KEY', 'https://papercups.mycompany.co');\n```\n\n## License\n\nCode licensed under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooluh%2Fpapercups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsooluh%2Fpapercups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooluh%2Fpapercups/lists"}