Skip to content

Commit 27f478c

Browse files
committed
update Readme
1 parent cec6f6d commit 27f478c

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

README.MD

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,28 @@
1-
# PDF TO IMAGE
1+
# PHP SIMPLE SPARK
22

3-
[![PHP Composer](https://github.com/gunantos/pdftoimage-php/actions/workflows/php.yml/badge.svg)](https://github.com/gunantos/pdftoimage-php/actions/workflows/php.yml)
4-
![Discord](https://img.shields.io/discord/846036920811126844?style=plastic)
5-
![Travis (.org)](https://img.shields.io/travis/gunantos/pdftoimage-php?style=plastic)
6-
![GitHub branch checks state](https://img.shields.io/github/checks-status/gunantos/pdftoimage-php/main?style=plastic)
7-
![Bitbucket Pipelines](https://img.shields.io/bitbucket/pipelines/andtho89/pdftoimage-php/main)<br>
83
<a href="https://sponsor.app-kita.net" target="_blank"><img src="https://img.shields.io/github/sponsors/gunantos?logo=gunantos&style=for-the-badge" title="Pay Coffe" /></a><br>
9-
Pdf to image library using Imagick<br>
4+
PHP Create Spark Serve<br>
105

11-
### INSTALATION
12-
13-
- Imagick
14-
15-
1. Check PHP Version `php -i|find "PHP Version"`
16-
2. Check PHP is Thread Safety `php -i|find "Thread Safety"`
17-
3. Check PHP Architecture `php -i|find "Architecture"`
18-
4. Download imagick from [Imagick](https://pecl.php.net/package/imagick)
19-
5. Once you downloaded the correct files:
6+
```php
7+
<?php
8+
$serve = new Appkita\SPARK\Serve;
9+
$serve->run();
10+
```
2011

21-
- Extract from `php_imagick-….zip` the `php_imagick.dll `file, and save it to the ext directory of your PHP installation
22-
- Extract from `ImageMagick-….zip` the DLL files located in the bin folder that start with `CORE_RL` or `IM_MOD_RL`, and save them to the PHP root directory `(where you have php.exe)`, or to a directory in your PATH variable
23-
- Add this line to your `php.ini` file: `extension=php_imagick.dll`
24-
- Restart the Apache/NGINX Windows service (if applicable)
25-
26-
6. To test if the extension works, you can run this PHP code:
12+
### INSTALATION
2713

28-
```php
29-
<?php
30-
$image = new Imagick();
31-
$image->newImage(1, 1, new ImagickPixel('#ffffff'));
32-
$image->setImageFormat('png');
33-
$pngData = $image->getImagesBlob();
34-
echo strpos($pngData, "\x89PNG\r\n\x1a\n") === 0 ? 'Ok' : 'Failed';
35-
```
14+
```php
15+
<?php
16+
$serve = new Appkita\SPARK\Serve;
17+
$serve->run();
18+
```
3619

3720
- Library
3821
`composer install appkita/pdftoimage`
3922

4023
### Lear More
4124

4225
- [php](https://www.php.net/manual/en)
43-
- [Imagick](https://www.php.net/manual/en/book.imagick.php)
4426

4527
### Chat
4628

0 commit comments

Comments
 (0)