apsg/wordpressor

Wordpress accessor for Laravel

Fund package maintenance!
apsg

0.2.0 2021-03-27 09:41 UTC

This package is auto-updated.

Last update: 2024-10-27 18:44:29 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.