Download the PHP package swisscom/aliceconnector without Composer

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

Neos Flow Alice connector

Neos Flow package for expressive fixture generation based on Alice.

The Swisscom.AliceConnector simply provides a Context that connects your functional test cases with Alice.

Getting started

Install the package through composer. You likely require it for dev only.

Configuration

Set the path to your fixture files in the Settings.yaml:

Fixture creation

Create your file based Alice fixtures under the path defined in .

This basic example stored as Company.yaml defines a single fixture object for the domain model Company:

For a more real case example and documentation reference about the notation go to "[What does Alice?](#What does Alice?)".

Usage

Use the Context in your test and load the fixtures. $testablePersistenceEnabled should be enabled to work with persistence.

If you have persistence enabled, you could also query the fixture through your repository:

This example loads the fixture defined in

What does Alice?

Alice allows you to define expressive fixtures based on YAML, JSON or PHP files. Alice again is relying on Faker to create fake data for your fixtures.

The following sample shows you the real gain of Alice creating 10 random Person entities with account and related entities:

We use fixture ranges {1..10} to create the 10 objects each, fixture references (e.g. @personName) as well as faked data through faker formatters (e.g. firstName()).

See the complete Alice reference for detailed information and more features.

What does Faker?

Faker simply provides random dummy data for your fixtures by providing formatters which can be used in Alice. See the available Faker formatters for complete reference.

The faker formatters are directly called in the fixture definition file.

Additionally, the Context exposes the faker generator through getFaker(), so that formatters can be used even directly in your code.

Custom Flow formatters

The package provides the following custom formatters for your Flow application.

Collection

A doctrine array collection:

Resource

A persistent resource:

Image asset with reference to a persistent resource:

Document asset with reference to a persistent resource:

Content string from a resourcee:

Security

Password hash for the given password:

Role object for the identifier:

Notes


All versions of aliceconnector with dependencies

PHP Build Version
Package Version
Requires neos/flow Version ^4.0 || ^5.0 || ^6.0 || ^7.0
nelmio/alice Version ^3.5
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 swisscom/aliceconnector contains the following files

Loading the files please wait ....