PHP code example of fresns / dto

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

    

fresns / dto example snippets


// Generate a new DTO (path: /app/DTO/)
php artisan make:dto BaseDTO

// Generate a new DTO(to the specified path)
php artisan make:dto BaseDTO --path /app/Fresns/Panel