PHP code example of acidjazz / metapi

1. Go to this page and download the library: Download acidjazz/metapi 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/ */

    

acidjazz / metapi example snippets




use acidjazz\metapi\MetApi;
class Controller
{
    use Metapi;



namespace App\Http\Controllers;

use acidjazz\metapi\MetApi;

class OrgController extends Controller
{

  use MetApi;

    /**
    * Display a listing of the resource.
    *
    * @return \Illuminate\Http\Response
    */
    public function index(Request $request)
    {
        $this
          ->option('approved', 'nullable|boolean');
          ->option('type', 'nullable|in:this,that');
          ->verify();
        ...
        $this->render($results);

    public function send(Request $request)
    {
        $this->option('contact.email', 'ption('contact.surname', '