{"id":20460593,"url":"https://github.com/fawno/ghostscriptapi","last_synced_at":"2025-03-05T11:23:47.258Z","repository":{"id":57698133,"uuid":"499971644","full_name":"fawno/GhostscriptAPI","owner":"fawno","description":"PHP wrapper class for GhostscriptAPI","archived":false,"fork":false,"pushed_at":"2022-06-05T01:55:01.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T00:34:20.297Z","etag":null,"topics":["ffi","ffi-bindings","ffi-wrapper","ghostscript","ghostscript-wrapper","php","php-ffi","php-ffi-experiment"],"latest_commit_sha":null,"homepage":"","language":"C","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/fawno.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":"2022-06-05T01:14:27.000Z","updated_at":"2022-06-05T01:32:06.000Z","dependencies_parsed_at":"2022-08-25T13:20:33.656Z","dependency_job_id":null,"html_url":"https://github.com/fawno/GhostscriptAPI","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/fawno%2FGhostscriptAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fawno%2FGhostscriptAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fawno%2FGhostscriptAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fawno%2FGhostscriptAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fawno","download_url":"https://codeload.github.com/fawno/GhostscriptAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242016097,"owners_count":20058154,"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":["ffi","ffi-bindings","ffi-wrapper","ghostscript","ghostscript-wrapper","php","php-ffi","php-ffi-experiment"],"created_at":"2024-11-15T12:20:37.289Z","updated_at":"2025-03-05T11:23:47.239Z","avatar_url":"https://github.com/fawno.png","language":"C","readme":"[![GitHub license](https://img.shields.io/github/license/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/blob/master/LICENSE)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/tags)\n[![Packagist](https://img.shields.io/packagist/v/fawno/gsapi)](https://packagist.org/packages/fawno/gsapi)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/fawno/gsapi)](https://packagist.org/packages/fawno/gsapi/stats)\n[![GitHub issues](https://img.shields.io/github/issues/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/issues)\n[![GitHub forks](https://img.shields.io/github/forks/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/network)\n[![GitHub stars](https://img.shields.io/github/stars/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/stargazers)\n\n# GhostscriptAPI\nPHP wrapper class for [Ghostscript API](https://ghostscript.com/doc/current/API.htm)\n\n# Requirements\n- PHP \u003e= 7.4.0\n- Ghostscript \u003e= 9.18\n- ext-ffi ([Foreign Function Interface extension](https://www.php.net/manual/en/book.ffi.php))\n\n## Instalation\n\n```sh\nphp composer.phar require \"fawno/gsapi\"\n```\n\n```php\n\u003c?php\n  require __DIR__ . '/vendor/autoload.php';\n\n  use Fawno\\GhostscriptAPI\\GSAPI;\n```\n\n## Example\n\n```php\n  require __DIR__ . '/vendor/autoload.php';\n\n  use Fawno\\GhostscriptAPI\\GSAPI;\n  use Fawno\\GhostscriptAPI\\GSAPIException;\n\n  $gs = new GSAPI('/usr/gs920/bin/gsdll64.dll');\n  $params = [\n    '-sDEVICE=pdfwrite',\n    '-dPDFSETTINGS=/ebook',\n    '-sOutputFile=ebook.pdf',\n    'original.pdf',\n  ];\n\n  try {\n    $gs-\u003erun_with_args($params);\n  } catch (GSAPIException $exception) {\n    echo $exception;\n  }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffawno%2Fghostscriptapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffawno%2Fghostscriptapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffawno%2Fghostscriptapi/lists"}