Introduce NoSQL Into Your Legacy LAMP Stack Projects With FireSql

joshualjohnson

Joshua Johnson

Posted on April 25, 2019

Introduce NoSQL Into Your Legacy LAMP Stack Projects With FireSql

Tired of having to write schema update scripts every time you want to make a change to your MySQL data structure? Or do you have a client on Wordpress and you would like to introduce new data driven features but don't want to take the time to have to create and manage new MySQL tables and schemas to get your new functionality in place?

FireSQL may be the solution you are looking for!

Within 10 minutes, you can can have FireSQL setup and working within your project. Ready to start interfacing with data objects. Forget about the schemas! Just start inserting objects like this:

// connect to database
$dns = 'mysql:host=localhost;dbname=test;port=3306';
$username = 'username';
$password = 'password1';
$pdo = new PDO($dns, $username, $password);
$db = new Fire\Sql($pdo);

// get a collection
$cars = $db->collection('Cars');

// insert $car objects
$cars->insert($car);

// retrieve $car objects
$fordCars = $cars->find('{"make":"ford"}');

With the latest release of 2.1.0 we've gone through and fully documented all source code and added a detailed README on how to use FireSQL.

Check it out on Packagist.org

💖 💪 🙅 🚩
joshualjohnson
Joshua Johnson

Posted on April 25, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related