PHP code example of emargareten / filetinker

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

    

emargareten / filetinker example snippets


return [

    /*
     * The file that tinker will run from.
     */
    'filepath' => base_path('tinker.php'),

    /*
     * Prepends the output with message.
     * To remove prepended message set this value to false
     */
    'prepend_message' => "[".date('Y-m-d H:i:s')."]",
];
bash
php artisan filetinker:install