apsg / wordpressor
Wordpress accessor for Laravel
Fund package maintenance!
apsg
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.3
- illuminate/contracts: ^8.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-10-27 18:44:29 UTC
README
Simple Wordpress accessor for PHP/Laravel projects. Now one can use Wordpress as CMS for Laravel application.
Installation
You can install the package via composer:
composer require apsg/wordpressor
You can publish the config file with:
php artisan vendor:publish --tag=wordpressor-config
This is the contents of the published config file:
return [ 'url' => env('WORDPRESS_URL'), 'cache' => true, ];
Usage
$posts = (new Wordpressor) ->posts() ->take(3) ->getTransformed(); $image = (new Wordpressor()) ->media() ->get($mediumId);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.