Skip to content

rishabh-live/faunadb-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faunadb-php : A Library for FaunaDB and PHP

About

"faunadb-php" is a library built for using faunadb with PHP.

How to use?

"faunadb-php" is still in development stages and has few basic features to go with.

  1. Downlaod the file and extarct in the project directory.
  2. To start with just include these line in the begining of the file.
require_once 'FaunaPhp/autoload.php';

$fauna = new FaunaPhp();
// Your commnd goes here

Further You can find all the new commands in "test.php" where all the test are going on.

List of Commands

  1. Connect to Faunna
$fauna->connectFauna($faunaKey);
Parameter Description Requirment
faunakey secret key required
  1. Create Database
$fauna->createDatabase($name);
Parameter Description Requirment
name name of the database required
  1. Create Collection
$fauna->createCollection($name);
Parameter Description Requirment
name name of the collection required
  1. Set Default Collection
$fauna->setDefaultCollection($name);
Parameter Description Requirment
name name of the collection required
  1. Use Default Collection
$fauna->useDefaultCollection();

Releases

No releases published

Packages

No packages published