Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fawno/ghostscriptapi

PHP wrapper class for GhostscriptAPI
https://github.com/fawno/ghostscriptapi

ffi ffi-bindings ffi-wrapper ghostscript ghostscript-wrapper php php-ffi php-ffi-experiment

Last synced: about 5 hours ago
JSON representation

PHP wrapper class for GhostscriptAPI

Awesome Lists containing this project

README

        

[![GitHub license](https://img.shields.io/github/license/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/blob/master/LICENSE)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/tags)
[![Packagist](https://img.shields.io/packagist/v/fawno/gsapi)](https://packagist.org/packages/fawno/gsapi)
[![Packagist Downloads](https://img.shields.io/packagist/dt/fawno/gsapi)](https://packagist.org/packages/fawno/gsapi/stats)
[![GitHub issues](https://img.shields.io/github/issues/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/issues)
[![GitHub forks](https://img.shields.io/github/forks/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/network)
[![GitHub stars](https://img.shields.io/github/stars/fawno/GhostscriptAPI)](https://github.com/fawno/GhostscriptAPI/stargazers)

# GhostscriptAPI
PHP wrapper class for [Ghostscript API](https://ghostscript.com/doc/current/API.htm)

# Requirements
- PHP >= 7.4.0
- Ghostscript >= 9.18
- ext-ffi ([Foreign Function Interface extension](https://www.php.net/manual/en/book.ffi.php))

## Instalation

```sh
php composer.phar require "fawno/gsapi"
```

```php
run_with_args($params);
} catch (GSAPIException $exception) {
echo $exception;
}
```