PHP code example of tomener / timo

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

    

tomener / timo example snippets


> cd timo-demo
> php timo serve

<VirtualHost *:8090>
    ServerAdmin [email protected]
    DocumentRoot "D:\php\timo-demo\public"
    ServerName localhost
    ErrorLog "logs/timo-demo-error.log"
    CustomLog "logs/timo-demo-access.log" common

    <Directory "D:\php\timo-demo\public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
        Header set Access-Control-Allow-Origin *
        Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Token"
        Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
        Header set Access-Control-Max-Age 86400
    </Directory>
</VirtualHost>