PHP code example of tuupke / laravel-finalizer
1. Go to this page and download the library: Download tuupke/laravel-finalizer 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/ */
tuupke / laravel-finalizer example snippets
Finalizer::register(function(){
file_put_contents('/tmp/finalizer-test', "Second String", FILE_APPEND);
}, 2);
Finalizer::register(function(){
file_put_contents('/tmp/finalizer-test', "First String\n", FILE_APPEND);
}, 1);