LaravelPackages.net
Acme Inc.
Toggle sidebar
ammonkc/laravel-wp-api

A Laravel Client for Wordpress REST Api

247
4
0.2.5
About ammonkc/laravel-wp-api

ammonkc/laravel-wp-api is a Laravel package for a laravel client for wordpress rest api. It currently has 4 GitHub stars and 247 downloads on Packagist (latest version 0.2.5). Install it with composer require ammonkc/laravel-wp-api. Discover more Laravel packages by ammonkc or browse all Laravel packages to compare alternatives.

Last updated

Laravel WP API

A Wordpress REST API client for Laravel.

Installation

Composer

Execute the following command to get the latest version of the package:

$ composer require ammonkc/laravel-wp-api

Laravel

>= laravel5.5

ServiceProvider will be attached automatically

Other

In your config/app.php add Ammonkc\WpApi\WpApiServiceProvider::class to the end of the providers array:

'providers' => [
    ...
    Ammonkc\WpApi\WpApiServiceProvider::class,
],

Configuration

Publish Configuration

php artisan vendor:publish --provider "Ammonkc\WpApi\WpApiServiceProvider"

Version

  • 1.0.0

Licence

This project is open-sourced software licensed under the MIT license

Installing as a dependency on a laravel project

Is very likely you'll need to install this package locally to test the integration. You can do so by adding the follow to the composer.json file in your laravel project.

    "repositories": [
        {
            "type": "path",
            "url": "path/to/package/folder"
        }
    ],

Then, in your laravel project root path you can just run:

$ composer require namespace/package-name

Credits

This package leverages vnn/wordpress-rest-api-client with added enhancements for laravel

Comments