Skip to content

Commit cec6f6d

Browse files
committed
first commit
0 parents commit cec6f6d

File tree

13 files changed

+3264
-0
lines changed

13 files changed

+3264
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
vendor
2+
#Appveyor msbuild response file
3+
4+
# No Banner
5+
/nologo
6+
# We just want errors displayed
7+
/ConsoleLoggerParameters:NoSummary;Verbosity=quiet
8+
# Log to a file and set options
9+
/filelogger
10+
/fileloggerparameters:Verbosity=detailed
11+
/bl
12+
# uncomment below to also include paramaters from @additionalswitches.rsp
13+
# @additionalswitches.rsp
14+
15+
*.yml
16+
appveyor.yml

.phpunit.result.cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:37:"PHPUnit\Runner\DefaultTestResultCache":127:{a:2:{s:7:"defects";a:1:{s:20:"ServeTest::testServe";i:5;}s:5:"times";a:1:{s:20:"ServeTest::testServe";d:0.012999999999999999;}}}

README.MD

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# PDF TO IMAGE
2+
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>
8+
<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>
10+
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:
20+
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:
27+
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+
```
36+
37+
- Library
38+
`composer install appkita/pdftoimage`
39+
40+
### Lear More
41+
42+
- [php](https://www.php.net/manual/en)
43+
- [Imagick](https://www.php.net/manual/en/book.imagick.php)
44+
45+
### Chat
46+
47+
[Discord](https://discord.gg/bXUWCSaw)
48+
49+
### Sponsor
50+
51+
[Pay Coffe](https://sponsor.app-kita.net)

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "appkita/spark-serve",
3+
"description": "PHP Build web server without server. You can use to deploy your aplication",
4+
"type": "library",
5+
"require-dev": {
6+
"phpunit/phpunit": "^9.5"
7+
},
8+
"license": "MIT",
9+
"authors": [
10+
{
11+
"name": "Gunanto Simamora",
12+
"email": "gunanto.simamora@gmail.com",
13+
"homepage": "https://app-kita.com",
14+
"role": "Developer"
15+
}
16+
],
17+
"require": {
18+
"php": ">=7.2"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"Appkita\\SPARK\\": "src/"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"Tests\\": "tests/"
28+
}
29+
},
30+
"support": {
31+
"email": "gunanto@app-kita.com",
32+
"forum": "https://discord.com/channels/846592998149062686/846592998149062689",
33+
"source": "https://github.com/gunantos/CI4RESTFULL",
34+
"slack": "app-kita.slack.com"
35+
}
36+
}

0 commit comments

Comments
 (0)