PHP code example of zykutil / record-ip

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

    

zykutil / record-ip example snippets


php artisan vendor:publish --tag=zykutil-recordip --ansi --force

php artisan ri:table

use ZYKUtil\RecordIp\Factory\AbstractRecordIp;

class FooType extends AbstractRecordIp
{
    public function __construct()
    {
        parent::__construct();
        $this->type = 'foo';
    }
}