Download the PHP package coduo/tutu without Composer

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

TuTu

Build Status Scrutinizer Code Quality

Flexible HTTP server mocking tool in PHP. TuTu can work with build in php server so everything that you need to use it is php. It can be used to simulate any kind of web application behavior. We are going to use TuTu during api clients tests.

How to use it

Install with composer

TuTu is still under development that's why you need to set stability to dev

Create responses for specific requests

TuTu can create any response for specific request but you need to teach him how to do it. In order to do that you need to prepare simple responses.yml yaml file.

Lets assume that we would like to create some kind of "Hello world" response

Run TuTu

You can use php build in webserver to run TuTu

Test TuTu

How when you send a GET request on "http://localhost:8000/hello/world?name=Norbert" TuTu should give you response with following content

Responses configuration

As you can see there are few was to customize TuTu responses.

In content template you have access to all twig features. You can also use request variable to access request data.

Request query, headers, request and body configuration may contain coduo/php-matcher patterns.

Load response content from file

In order to keep your config files as small as possible you can move response content into separated file.

Above configuration is going to load content from hello_world.twig.html file present in @resources namespace.

Configuration

TuTu have also configuration file where you can set up few things.

Extensions

Because there is no such thing as perfect tool TuTu allows you to create extensions. To enable extension you just need to prepare config.yml file.

Above example show how to load Faker extension (available in this repository). You can also pass arguments to extension during initialization.

In above example extension Coduo\TuTu\Extension\Faker is going to be created with one argument with value "pl_PL".

Keep in mind that Faker extension is available in TuTu by default. You don't need to enable it manually.

Few Examples


All versions of tutu with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
symfony/http-kernel Version ~2.3
symfony/options-resolver Version ~2.3
symfony/event-dispatcher Version ~2.3
symfony/class-loader Version ~2.3
symfony/yaml Version ~2.3
twig/twig Version 1.*
coduo/php-matcher Version 2.1.*
coduo/tutu-faker-extension Version 1.0.*
coduo/tutu-twig-extension Version 1.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 coduo/tutu contains the following files

Loading the files please wait ....