Download the PHP package davjand/codecept-symphonycms-db without Composer

On this page you can find all versions of the php package davjand/codecept-symphonycms-db. 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 codecept-symphonycms-db

Readme

A codeception module to facilitate integration with Symphony CMS (http://getsymphony.com).

This is intended to be used in conjunction with the existing Db module for setup/teardown of databases. It currently offers functions putting your own fixture data into the database

2015-10-30 - Version: 0.2

2015-10-29 - Version: 0.1

Setup

The module has no configuration parameters however you must define the symphony DOCROOT within your bootstrap.php file for this to work

An older version of symphony is included in the repository (the repo was developed for testing an old repo) however by changing the path below to your included symphony source that you are testing you can use that.

This will access the database through the settings in your manifest/config.php file.

Please note that in some environments, you need to have your host as 127.0.0.1 for the database rather than localhost for using with codeception.

Config

Enable in your configuration file as below. You can define a custom path to your fixtures folder for included yml fixtures

Functions

symHaveFixtureInDatabase($fixture)

Load a yml file of data from your fixtures folder (see config above).

Format is

Subsequent entries can be associated with previous entries using the format %section:position% as seen in the example below. The position starts at 1, not 0. The section with the relation must be defined after the entry it is being related to or an error will be thrown.

NB: It is not currently possible to associate entries in the same section together.

For Example.

symHaveInDatabase($data)

Inserts multiple sections data into the database in one go.

Subsequent sections can be related to each other using the %section:position% format as above

symHaveEntriesInDatabase($sectionHandle,$data)

$data should be a multi-dimensional array in the format

It returns an array of the inserted IDs

symHaveEntryInDatabase($sectionHandle,$data)

Similar to symHaveInDatabase except exceptions only one entry. Accepts the data in key value format.

symUpdateDatabaseRecord($sectionHandle,$entryId,$data)

This will update an existing record with the data passed. Accepts the data in key value format.


All versions of codecept-symphonycms-db with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version v2.7.6
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 davjand/codecept-symphonycms-db contains the following files

Loading the files please wait ....