Download the PHP package bradietilley/faker-imagez without Composer

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

Images

Static Analysis Tests

Introduction

FakerImagez provides an interface for other faker image generators.

Repositories

Imagez available:

Documentation

It's insanely easy to use.

Define your Imagez class, or use one of the above ^

If you're using a package mentioned above, just replace imagez() in the examples below with the name of the package, such as foodz() or catz().

Get random paths

Each invocation will return a new random path.

Once all image images are exhausted, it'll refeed and continue again with another random order.

Get random contents

Each invocation will return a new random file's contents.

Get SplFileInfo objects

Each invocation will return a new random file as an instance of SplFileInfo.

Get exact image

Have a favorite? Get specific ones every time using the get method. This will NOT remove the image from the pool, it will simply fetch the given image.

Get count of images

If you'd like to determine the number of images available, use the count method. This will NOT count the pool but all images.

Halt iterating for repeat interactions

Sometimes you might want to iterate the pool manually and perform multiple queries to fetch the path, contents or splfile info without having it automatically iterate. You can achieve this using the below approach.

Get all images

Maybe you want to pluck all sample images and do something custom. Easy as. The all method will return all images (paths), the pool method will return what's remaining in the pool (paths).

Pool reloading

These are internal functions but they're also public. Might come in handy if you're doing something custom:

Replace all images in the faker

You can also replace all images in the faker using the replaceAll() method.

Combining generators

Maybe you like catz and dogz and foodz and want your placeholders/avatars to include multiple sources. This can be achieved easily:

Roadmap

Author


All versions of faker-imagez with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^10.0|^11.0
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 bradietilley/faker-imagez contains the following files

Loading the files please wait ....