Download the PHP package sitegeist/chitchat without Composer

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

Sitegeist.ChitChat

Deterministic randomized text generator for styleguide props

Presentational components for the monocle styleguide tend to have longish @styleguide.props that are hard to maintain, tend to overshadow the actual component and often do not provide enough diversion to actually test different text lengths.

ChitChat generates pseudo random texts that can be used in styleguide props. The texts are generated uniquely for each insertion point (fusion path) using pseudo random numbers.

The implementation was inspired by the js library getlorem https://github.com/lukehaas/getlorem/. Also the word list we use started as a copy from getlorem.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.

Installation

Sitegeist.ChitChat is available via packagist and can be installed with the command composer require sitegeist/chitchat.

We use semantic-versioning so every breaking change will increase the major-version number.

Usage

The Line and Text prototypes generate a pseudo random text. The text is much longer and structured as multiple sentences. Both prototypes allow to enable formatting via links, strong and em.

For simulating longer and formatted texts chitchat brings prototypes to simulate Html Headings, Paragraphs and Lists. Those allow to specify the expected structure of the content prop. Together with the afx syntax this allows to efficiently mock larger texts.

Base Prototypes

The base prototypes Text and Line will create text without block formatting whule
Number creates integer numbers.

All prototypes have the properties:

The Text and Line prototypes support in addition:

The Number prototype supports in addition:

Textblock Fusion Prototypes

The textblocks extend the base prototypes with block formatting. Otherwise they support the same properties as Text and Line.

List Fusion Prototypes

The list prototypes extend the base prototypes with list formatting. The prototypes have the properties as the base prototypes, in addition the property number allows to specify how many items are to be generated.

Additional properties:

Configuration

The configuration allows to configure alternate implementations for

Randomness vs predictability

While predictable text generation is important for stable tests and therefore is the default. The testing of frontend prototypes sometimes benefits from completely random texts that are regenerated on every call.

To allow this the probability mode can be configured via setting Setting or fusion path probability. By default the modes random and predictable are available.

Replacing the dictionary or "how to speak klingon"

To implement custom dictionaries you can provide alternate implementations of the interface \Sitegeist\ChitChat\Domain\DictionaryProviderInterface.

The dictionaries are registered via Setting.yaml:

And can later be used like this:

Contribution

We will gladly accept contributions. Please send us pull requests.


All versions of chitchat with dependencies

PHP Build Version
Package Version
Requires neos/fusion Version ~8.0 || 8.2.x-dev || dev-main || dev-master
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 sitegeist/chitchat contains the following files

Loading the files please wait ....