Monday, July 11, 2016

Connect With Parse Databse in PHP

Parse Database is a NOsql database .its a cloud-based online Database .


How can we connect Parse DATABASE with PHP ?

everyone knows how to connect php with Mysql but nowdays mobile apps are created with  very complex to integrate with Mysql.so there is a new way to make web APIs with php instead of Mysql we can use NOsql Databases like Parse.

How to start with ..

Steps

You Need to configure Parse Database in your system.before the create a account with www.parse.com

using your account credentials create  database over Parse.

then

Install Composer to your local server. here you will find your autoload.php

https://www.parse.com/apps/quickstart#parse_data/php


require 'vendor/autoload.php';
use Parse\ParseClient;
ParseClient::initialize('YOUR_APP_ID', '', 'YOUR_MASTER_KEY');
ParseClient::setServerURL('http://YOUR_PARSE_SERVER:1337/parse');

After this you are now connected to www.parse.com Database

Now in your PHP file create object of table as you require

Then please checkout the Tutorial in parse.com for PHP functions

Thanks




No comments:

Post a Comment