Download the PHP package recycledbeans/the-office-faker without Composer

On this page you can find all versions of the php package recycledbeans/the-office-faker. 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 the-office-faker

The Office Faker

Latest Stable Version Build Status

Bears. Beets. Battlestar Galactica.

With this package, you can extend the extremely useful Faker (fzaninotto/faker) Library to seed your PHP application with fake data using characters and companies from the hit TV series, The Office (US).

This is vital for when we launch Dunder Mifflin Infinity ✌️-point-👌!

Installation

Install this package using Composer.

Usage

Start using characters and company names immediately using the Faker methods you are already familiar with by adding the provider to your Faker instance.

The example below is using a Laravel Factory as an example, but Faker (and this provider) can be used in any PHP project.

🔥 Laravel

If you are using this package in a Laravel application, you can also make this functionality available to all of your factories and tests globally by adding the TheOfficeFaker\Laravel\TheOfficeServiceProvider::class to the providers section of config/app.php as detailed in the Laravel Docs.

Characters

The default usage above creates truly randomized first and last names, so you will end up with names like "Roy Kapoor" or "Jim Schrute". If you would like the have the first and last names be consistent with the characters on the show (which is probably what most people would enjoy), you can use the character() method to return an object of a character's details.

Companies

There is a small, but growing, list of fictional (and some Scranton-area) company names taken from episodes of The Office. You can use these the same way you would use the normal company attribute.

Contributing

Running unit tests

This project uses PHPUnit. You can run tests with or without code coverage.

With no code coverage

With code coverage (you must have Xdebug installed to run code coverage)

To view the code coverage report open tests/coverage/index.html in your browser.

Ideas

Do you have ideas for other bits of data that you would like to see in this package? Create an issue with your suggestion!

TODO (I would love your help!)

There is a short list of things I would like to improve or add in the near future to make this provider even better. If you would like to help in this endeavor, please feel free to create a pull request. Even if you don't feel like coding, if you see someone major that is missing from the characters list or a company that hasn't been added, please create a PR!


Follow me on Twitter!


All versions of the-office-faker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
fzaninotto/faker Version ^1.9
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 recycledbeans/the-office-faker contains the following files

Loading the files please wait ....