Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.88 KB

File metadata and controls

68 lines (44 loc) · 1.88 KB

Wordpressor - wordpress data accessor for PHP/Laravel

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.