PHP code example of ceedcv-maya / shared-http-laravel

1. Go to this page and download the library: Download ceedcv-maya/shared-http-laravel 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/ */

    

ceedcv-maya / shared-http-laravel example snippets


use Maya\Http\ResponseEnvelope;

return ResponseEnvelope::ok(['user' => $user]);
return ResponseEnvelope::error('not_found', 'User not found', status: 404);