1. Go to this page and download the library: Download kigkonsult/fakerlocreltypes 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/ */
kigkonsult / fakerlocreltypes example snippets
use Faker\Factory;
use Kigkonsult\FakerLocRelTypes\Provider\en_US\Rfc4589LocationTypes;
$faker = Factory::create();
$faker->addProvider( new Rfc4589LocationTypes( $faker ));
// Generator
// a random rfc4589 Place Location Type
$locationType = $faker->rfc4589LcationType();
use Faker\Factory;
use Kigkonsult\FakerLocRelTypes\Provider\en_US\Rfc8288RelationTypes;
$faker = Factory::create();
$faker->addProvider( new Rfc8288RelationTypes( $faker ));
// Generator
// a random rfc8288 Web Relation Type
$relationType = $faker->rc8288RelationType();
use Faker\Factory;
use Kigkonsult\FakerLocRelTypes\Provider\MediaTypes;
$faker = Factory::create();
$faker->addProvider( new MediaTypes( $faker ));
// Generator
// a random application mediaType
$applicationType = $faker->applicationMediaType();
use Faker\Factory;
use Kigkonsult\FakerLocRelTypes\Provider\en_US\Rfc7970enums;
$faker = Factory::create();
$faker->addProvider( new Rfc7970enums( $faker ));
// Generator
// a random rfc7970 restriction enumeration value
$restriction = $faker->rfc7970Restriction();
use Faker\Factory;
use Kigkonsult\FakerLocRelTypes\Provider\SchemaURI;
$faker = Factory::create();
$faker->addProvider( new SchemaURI( $faker ));
// Generator examples
// a random tel schema Uri
// generate a tel schema Uri like "tel:+13859966391"
$telUri = $faker->telUri();
// a random vnc (extended) schema Uri
// generate a vnc schema Uri like "vnc://[email protected]:5594?ConnectionName=minima"
$vncUri = $faker->vncUri( true );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.