2017 © Pedro Peláez
 

library jsonconnection

Crud for JSON Flie using PHP

image

darkterminal/jsonconnection

Crud for JSON Flie using PHP

  • Thursday, May 3, 2018
  • by darkterminal
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

JSON Connection File

Latest Stable Version Total Downloads License, (*1)

Installation

composer require darkterminal/jsonconnection

Usage

<?php 

use Darkterminal\JSONConnection;

require_once 'vendor/autoload.php'; // Autoload
require_once 'PersonInSports.php'; // Your Own Rules

$database = getcwd() . '/database.json'; // path to json File
$db = new JSONConnection( $database ); // Create connection

/////////////// INSERT DATA ////////////////////
/// Rule must be similar an example
$person1 = new PersonInSports(); // Using rule
$person1
        ->code(8)
        ->name('Gatama Yarakh')
        ->sports('Surfer');   
$data = $person1->get();
$db->insert($data);
///////////////////////////////////////////////

$db->update(['Code', 8], ['Name', 'Yarakh Gatama']); // Update data

$db->selectAll(); // get all adata

$db->getLast(); // get last record

$db->find(3); // find record by Integer / String Only

$db->delete( 'Code', 7 ); // Delete data

The Versions

03/05 2018

dev-master

9999999-dev

Crud for JSON Flie using PHP

  Sources   Download

MIT

by Avatar darkterminal

02/05 2018

v1.0

1.0.0.0

Crud for JSON Flie using PHP

  Sources   Download

MIT

by Avatar darkterminal