PHP code example of ielfran / phptypes-bridge-laravel

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

    

ielfran / phptypes-bridge-laravel example snippets


class BookDto implements \JsonSerializable
{
    use \App\DTOs\JsonSerializableDto; // auto-generated by bridge:generate
    public function __construct(...) {}
}
bash
php artisan phptypes:init
php artisan phptypes:generate