Download the PHP package kield-01/random-user-php-sdk without Composer

On this page you can find all versions of the php package kield-01/random-user-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package random-user-php-sdk

Random User PHP SDK

Latest Stable Version Total Downloads Daily Downloads composer.lock

This SDK allows You to generate from 1 to 2048 users at one time

Installation

composer require kield-01/random-user-php-sdk

API

KielD01\RandomUser::__construct($version = null)
Sets the latest version, if $version is null or throws an Exception.

KielD01\RandomUser::asJson()
Sets the header of Content-Type to application/json.

KielD01\RandomUser::setVersion($version = null)
Sets the $this->version to $version. Throws an Exception.

KielD01\RandomUser::setOutputFormat($format = null)
Sets the output format between 'json', 'xml', 'pretty', 'yaml', 'csv'

KielD01\RandomUser::setResultsCount($results = null)
Sets results count. Available range is from 1 to 2048.

KielD01\RandomUser::setPage($page = 1)
Sets results page

KielD01\RandomUser::setSeed($seed = null)
Sets seed

KielD01\RandomUser::setNoInfo($noInfo = false)
Disable or Enable info object.

KielD01\RandomUser::setNationalityOnly($nationality = null, $value = false)
Set nationality value or values to $value

KielD01\RandomUser::setIncludedOrExcludedFields($type = 'inc', $fields = null, $value = true)
Sets included or excluded fields

KielD01\RandomUser::getVersion()
Returns version

KielD01\RandomUser::getNationalities()
Returns nationalities list due to version

KielD01\RandomUser::getQuery()
Returns request query to be sent

KielD01\RandomUser::getResults()
Returns KielD01\RandomUser\Helpers\Colelction, which contains items array of an KielD01\RandomUser\Helpers\Entity

KielD01\RandomUser::fetch($debug = false)
Fetch the results from the API and transform it into KielD01\RandomUser\Helpers\Collection

Example


All versions of random-user-php-sdk with dependencies

PHP Build Version
Package Version
Requires fabpot/goutte Version ^3.2
ext-json Version *
symfony/var-dumper Version ^4.1
nesbot/carbon Version ^2.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kield-01/random-user-php-sdk contains the following files

Loading the files please wait ....