Download the PHP package activecollab/resistance without Composer

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

Resistance

Build Status

Resistance is a simple Redis key manager for PHP. It does not try to be a fully featured ORM, just to make keyspace management easier.

How to use?

Include it in your project using Composer:

Implement a storage:

Field Settings

Common field settings:

  1. map - Map ID-s and values and make them accessible via getIdsBy() method,
  2. protect - Protect field from being set on insert(),
  3. required - Value is required not to be empty,
  4. unique - Make sure that field value is unique in the storage (required is implied). This setting is not applicable to boolean fields,

String field settings:

  1. format - Value is required and needs to match the given format,
  2. isEmail - Value is required and needs to be a valid email address,
  3. isUrl - Value is required and needs to be a valid URL,
  4. modifier - Make sure that values go through this callback or function before they are stored.

Read, Update, Delete

Instantiate it using a \ActiveCollab\Resistance::factory():

Migrations

Resistance implements a simple data migration system. to use migrations, create directory in your project where you will store migrations and name them like Migration0001.ThisIsMigrationDescription.php or Migration0001.php. Class names of migrations should be in Migration0001 format and they need to extend ActiveCollab\Resistance\Storage\Migration class. Description bit is optional and ignored - it's just for your reference. Example:

/my/awesome/project/migrations/Migration0001.AddedNewField.php
/my/awesome/project/migrations/Migration0002.MappedFieldValue.php
/my/awesome/project/migrations/Migration0003.MadeFieldUnqiue.php
/my/awesome/project/migrations/Migration0004.NoLongerNeedsToBeUnique.php

You can instruct Resistance to execute all migrations using:

First parameter is path to the folder where you have your migration classes stored, and second parameter is your migrations namespace. If you are not namespacing your migrations (not recommended), ommit the second parameter blank.

Useful methods that you can use in migrations:

How to contribute?

Five simple steps to contribute.

  1. Fork the repo,
  2. Clone to your computer,
  3. cd to checkout folder and run composer install to update dependencies,
  4. Make and push the changes. Make sure that you have tests in place,
  5. Send a Pull Request.

Thank you!


All versions of resistance with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
ext-json Version *
ext-filter Version *
ext-mbstring Version *
ext-redis Version *
doctrine/inflector 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 activecollab/resistance contains the following files

Loading the files please wait ....