PHP code example of apsg / wordpressor
1. Go to this page and download the library: Download apsg/wordpressor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
apsg / wordpressor example snippets
return [
'url' => env('WORDPRESS_URL'),
'cache' => true,
];
$posts = (new Wordpressor)
->posts()
->take(3)
->getTransformed();
$image = (new Wordpressor())
->media()
->get($mediumId);
bash
php artisan vendor:publish --tag=wordpressor-config