Download the PHP package joshmoody/mock-data without Composer

On this page you can find all versions of the php package joshmoody/mock-data. 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 mock-data

Mock Data Generator

Generate realistic test data.

Source Build Status Total Downloads Latest Stable Version

Why?

I work with very data-intensive applications. Sometimes I need large quantities of test data for building test cases and seeding web services, databases, online forms, etc. I wrote this library to assist with this.

With a simple loop, I can generate a database representing 100,000 people to use in my development and testing.

Base data sources included in this library

Mock Data Generation

Many different types of mock data can be generated with this library. From basic building blocks like numbers and dates to a Person with just about every attribute you need from a Date of Birth to Driver's License and Credit Card.

Data Realism

This library is designed to create very realistic-looking data.

Usage

Example output:

Each type of data element above may be generated independently.

Names

Get a full name (first, middle, last, gender).

Why is gender is included as a property of the name? In the U.S., first and middle names are usually closely associated with gender.

Or get parts of a name:

Addresses

Get a full address with street, city, state, zip

Or gets parts of an address:

Phone Numbers

Internet

Random Data

In addition to realistic data generation, you can also use this library to easily pick a random value from an array.

Or get a boolean.

Or get a string representation of a boolean. You define the return values for true/false

Requirements

Installation

Installation of this package is easy with Composer. If you aren't familiar with the Composer Dependency Manager for PHP, you should read this first.

Zero Configuration Instructions

The package ships with a sqlite database containing all the data needed for generating random records.

Reloading Data

You can use the load script to regenerate the sqlite database at any time. This may be useful if modifying the source data to better fit your needs.

Acknowledgements

The geographic and demographic source data used in this library was derived from several places, including:

License and copyright

Licensed under the MIT License. Copyright (c) 2013, Josh Moody. All rights reserved.


All versions of mock-data with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
simpl/sql Version ^1.3
ext-pdo Version *
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 joshmoody/mock-data contains the following files

Loading the files please wait ....