{"id":13705226,"url":"https://github.com/spacetab-io/gotenberg-sdk-php","last_synced_at":"2025-04-09T03:34:59.152Z","repository":{"id":57056347,"uuid":"274667742","full_name":"spacetab-io/gotenberg-sdk-php","owner":"spacetab-io","description":"A simple PHP async client for interacting with a Gotenberg API. Based on amphp.","archived":false,"fork":false,"pushed_at":"2020-06-24T13:38:20.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T22:13:52.215Z","etag":null,"topics":["gotenberg","php","sdk","sdk-php"],"latest_commit_sha":null,"homepage":"","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/spacetab-io.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":"2020-06-24T12:51:08.000Z","updated_at":"2022-07-28T06:17:04.000Z","dependencies_parsed_at":"2022-08-24T07:30:25.291Z","dependency_job_id":null,"html_url":"https://github.com/spacetab-io/gotenberg-sdk-php","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/spacetab-io%2Fgotenberg-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fgotenberg-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fgotenberg-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fgotenberg-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacetab-io","download_url":"https://codeload.github.com/spacetab-io/gotenberg-sdk-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974416,"owners_count":21026739,"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":["gotenberg","php","sdk","sdk-php"],"created_at":"2024-08-02T22:00:35.685Z","updated_at":"2025-04-09T03:34:59.124Z","avatar_url":"https://github.com/spacetab-io.png","language":"PHP","funding_links":[],"categories":["Clients"],"sub_categories":[],"readme":"Asynchronous PHP Gotenberg SDK\n------------------------------\n\nA simple PHP async client for interacting with a Gotenberg API. Based on [Amphp](https://amphp.org).\n\nUtil `1.0.0` release library is unstable. Not ready for production use. \n\n## Install\n\n```bash\ncomposer require spacetab-io/gotenberg-sdk\n```\n\n## Usage example\n\n### Simple methods which returns a promise\n\n```php\nuse Amp\\Loop;\nuse Spacetab\\Logger\\Logger;\nuse Psr\\Log\\LogLevel;\nuse Spacetab\\Sdk\\Gotenberg;\nuse Spacetab\\Sdk\\Gotenberg\\Request;\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nLoop::run(function () {\n    $logger = Logger::default('Gotenberg', LogLevel::DEBUG);\n    $gotenberg = Gotenberg\\Client::new('http://0.0.0.0:3000');\n    $gotenberg-\u003esetLogger($logger);\n\n    $option = new Request\\Html();\n    $option-\u003esetLandscape(true);\n    $option-\u003esetMarginBottom(0.1);\n    $option-\u003esetMarginLeft(0.1);\n    $option-\u003esetMarginRight(0.1);\n    $option-\u003esetMarginTop(0.1);\n    $option-\u003esetScale(0.70);\n\n    /** @var \\Spacetab\\Sdk\\Gotenberg\\Output $output */\n    $output = yield $gotenberg-\u003ehtml()-\u003efromString('\u003cp\u003ehi\u003c/p\u003e', $option);\n    yield $output-\u003easFile(__DIR__ . '/index.pdf');\n});\n```\n\n## Supported methods\n\n* Converts from HTML to PDF\n\n## License\n\nThe MIT License\n\nCopyright © 2020 spacetab.io, Inc. https://spacetab.io\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetab-io%2Fgotenberg-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacetab-io%2Fgotenberg-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetab-io%2Fgotenberg-sdk-php/lists"}