Skip to content

apsg/wordpressor

Repository files navigation

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.

About

Wordpress data accessor for Laravel

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages