PHP code example of cyberduck / laravel-wp-api

1. Go to this page and download the library: Download cyberduck/laravel-wp-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cyberduck / laravel-wp-api example snippets


'providers' => array(
  'Cyberduck\LaravelWpApi\LaravelWpApiServiceProvider'
)

'aliases' => array(
  'WpApi' => 'Cyberduck\LaravelWpApi\Facades\WpApi'
),

WpApi::posts($page);


WpApi::pages($page);


WpApi::post($slug);


WpApi::categories();


WpApi::tags();


WpApi::category_posts($slug, $page);


WpApi::search($query, $page);


WpApi::archive($year, $month, $page);