Download the PHP package turanct/bdsm without Composer

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

BDSM Does Simple Migrations

Travis CI

A really simple migrations library. It is currently not meant to be used in production but nobody's going to stop you if you really want to. Use at your own risk.

Usage

Installing

Installing it is easy, just require turanct/bdsm as a development dependency in your composer.json file, and configure a bin-dir. The bdsm executable will be available in your bin directory when you've run composer install.

Bootstrapping

The bdsm executable expects a .bdsm.php file in the working directory of your project. In this file you can do all necessary bootstrapping. It just needs to return an array with these elements:

  1. The directory where we can find migrations
  2. The file in which we can log which migrations we ran
  3. A database adapter, implementing the really simple Bdsm\Database interface

In this case, we provided a directory migrations in which the migrations will live, and a log file .bdsm.log.json to which the system can log. The database adapter in this example will not actually connect to a database, but it will print out every query issued.

First migration

We're ready to create our first migration right now! Run the bdsm command with the create parameter.

You can also pass a custom migration name as a parameter. A new migration will be created in our migrations directory with these contents:

We can now simply script the up and down actions for our migration, and then check it's status. It should be red.

Running it is as simple as bdsm up Migration1441375998. Note that you can run all migrations at once using bdsm up without arguments.

Another look at the migration status shows us that we succeeded!

Migrating down is exactly the same procedure, but with down instead of up commands.

Tests

BDSM has unit tests, located in the tests directory. These tests are written using phpunit. To run them, make sure you did a composer install and run phpunit.

Contributing

Feel free to fork and send pull requests!

License

This library is MIT licensed. See also LICENSE.md


All versions of bdsm with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^2.7.3
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 turanct/bdsm contains the following files

Loading the files please wait ....