PHP code example of sudiptpa / guid

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

    

sudiptpa / guid example snippets


composer 

'providers' => [
    Sujip\Guid\GuidServiceProvider::class,
]

'aliases' => [
   'Guid' => Sujip\Guid\Guid::class,
]

echo "GUID: " . Guid::create(); //example output : 2b23924f-0eaa-4133-848e-7ce1edeca8c9

echo "GUID: " . guid(); // example output: 2b23924f-0eaa-4133-848e-7ce1edeca8c9




$guid = new \Sujip\Guid\Guid;

echo $guid->create();


//Example: 2b23924f-0eaa-4133-848e-7ce1edeca8c9