Download the PHP package grosay/loremizer without Composer

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

Loremizer

Latest Stable Version Total Downloads Latest Unstable Version License

Loremizer is a tool that generate random content based on the famous Lorem Ipsum.

It's a quick way to generate content for your demos and design tests.

Setup

Prerequisite

Install via Composer

composer require grosay/loremizer

How to use

To use the composer package, make sure your project loads the autoloader from composer, by example:

require_once __DIR__ . '/vendor/autoload.php';

Then tell your server you'll use the Loremizer class:

use Loremizer\loremizer;

Phrases

To get a single phrases, call the following method:

loremizer::getPhrase();

You can also call multiples phrases by adding a number parameter, by example:

loremizer::getPhrase(5);

You may also directly call getParagraph (see below).

Paragraphs

getParagraph

To generate one or more paragraph, call the method:

loremizer::getParagraph();

By default, it will return two paragraphs. If you want more, simply add the number:

loremizer::getParagraph(25);

Titles (words)

You can get a random title by calling the following method:

loremizer::getTitle();

If you want directly the title surrounded by the H balise, add the level you want:

Images

Loremizer also let you get a random image from Unsplash:

loremizer::getImg();

By default, it just returns the URI of the image in 800x600.

If you directly want the image tag:

loremizer::getImg(true);

You can specify image resolution by specifying width and height:

Development

If you wish to collaborate to this project you are welcome ! Just fork this repo, clone it on your computer and jump into the code !

You can also mount a fully-functional vagrant environnement by launching the command vagrant up from your terminal.

Once your work is done, just submit a pull-request and I'll take a look :).

Licence

This project is under Apache2.0-licence.

Changelog

Credit

All images returned by loremizer are freely shared on Unsplash.


All versions of loremizer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 grosay/loremizer contains the following files

Loading the files please wait ....