@@ -13,19 +13,58 @@ composer require webdevpack/sdk-php
1313``` php
1414$wdp = new WebDevPack\Client(['apiKey' => 'YOUR-API-KEY']);
1515
16+ // IMAGES
17+
1618// Optimize images
17- $wdp->optimizeImage($sourceFilename, $targetFilename,80);
19+ $wdp->optimizeImage($sourceFilename, $targetFilename, 80);
1820
19- // Minify JavaScript
20- $wdp->minifyJavaScriptFile ($sourceFilename, $targetFilename);
21+ // Convert images
22+ $wdp->convertImage ($sourceFilename, $targetFilename, 'webp', 80 );
2123
2224// Get text from image (OCR)
2325$result = $wdp->getTextFromImage($sourceFilename, 'eng');
24- ```
2526
26- ## Documentation
27+ // Generate QR Code
28+ $wdp->generateQRCode($text, $targetFilename, 500, 'webp');
29+
30+ // Generate barcode
31+ $wdp->generateBarcode($text, $targetFilename, 500, 300, 'webp');
32+
33+ // CODE
34+
35+ // Minify JavaScript code
36+ $result = $wdp->minifyJavaScript($source);
37+
38+ // Minify JavaScript file
39+ $wdp->minifyJavaScriptFile($sourceFilename, $targetFilename);
40+
41+ // Minify CSS code
42+ $result = $wdp->minifyCSS($source);
2743
28- Full [ documentation] ( https://github.com/webdevpack/sdk-php/blob/master/docs/markdown/index.md ) is available as part of this repository.
44+ // Minify CSS file
45+ $wdp->minifyCSSFile($sourceFilename, $targetFilename);
46+
47+ // WEBSITES
48+
49+ // Get domain WHOIS information
50+ $result = $wdp->domainWhois($domain);
51+
52+ // SECURITY
53+
54+ // Generate password
55+ $result = $wdp->generatePassword($length, true, true, true);
56+
57+ // Generate key pair
58+ $result = $wdp->generateKeyPair($bits);
59+
60+ // DOCUMENTS
61+
62+ // Convert HTML to PDF
63+ $wdp->convertHTMLToPDF($source, $targetFilename);
64+
65+ // Convert HTML file to PDF
66+ $wdp->convertHTMLFileToPDF($sourceFilename, $targetFilename);
67+ ```
2968
3069## License
3170This project is licensed under the MIT License. See the [ license file] ( https://github.com/webdevpack/sdk-php/blob/master/LICENSE ) for more information.
0 commit comments