PHPackages                             turanct/bdsm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. turanct/bdsm

ActiveApplication

turanct/bdsm
============

BDSM Does Simple Migrations

0.0.1(10y ago)014MITPHP

Since Sep 4Pushed 10y ago2 watchersCompare

[ Source](https://github.com/turanct/bdsm)[ Packagist](https://packagist.org/packages/turanct/bdsm)[ Docs](http://github.com/turanct/bdsm)[ RSS](/packages/turanct-bdsm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

BDSM Does Simple Migrations
===========================

[](#bdsm-does-simple-migrations)

[![Travis CI](https://camo.githubusercontent.com/617988a0adbc8b69697707b7a6cfad46c454ef59275251a9d12f62bdf32ace17/68747470733a2f2f6170692e7472617669732d63692e6f72672f747572616e63742f6264736d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/turanct/bdsm)

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
-----

[](#usage)

### Installing

[](#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`.

```
{
    "require-dev": {
        "turanct/bdsm": "dev-master"
    },
    "config": {
        "bin-dir": "bin"
    }
}
```

### Bootstrapping

[](#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

```
