2017 © Pedro Peláez
 

library php-ncmb

PHP SDK for NIFCLOUD mobile backend (NCMB)

image

ncmbmania/php-ncmb

PHP SDK for NIFCLOUD mobile backend (NCMB)

  • Wednesday, May 16, 2018
  • by ncmbmania
  • Repository
  • 2 Watchers
  • 0 Stars
  • 271 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

PHP SDK for 'NIFCLOUD mobile backend'

php-ncmb: Unofficial PHP SDK for NIFCLOUD mobile backend (NCMB)., (*1)

Install

Add line into 'require' section of your 'composer.json':, (*2)

     "ncmbmania/php-ncmb": "*"

then hit command:, (*3)

  $ composer install

Initialize

    use Ncmb\NCMB;

    $appkey = YOUR_APPLICATION_KEY;
    $clientkey = YOUR_CLIENT_KEY;

    NCMB::initialize($appkey, $clientkey);

Store data

    use Ncmb\Object;
    use NCMB\GeoPoint;

    $className = 'FooBar';
    $foobar = new Object($className);
    $foobar->stringKey = 'This is String';
    $foobar->intKey = 1;
    $foobar->dateKey = new DateTime();
    $foobar->geoKey = new GeoPoint(43.223, 133.392);
    $foobar->save();

Find data

    use \Ncmb\Query;

    $className = 'FooBar';
    $query = new Query($className);
    $query->equalTo('intKey', 1);
    $foundObj = $query->first();

File

    use \Ncmb\File;

    // put file
    $file = File::createFromData('hogehoge', 'hoge.txt');
    $file->save();

    // get file
    $file = File::createFromServer('hoge.txt');
    $data = $file->getData();

Script

    use \Ncmb\Script;

    $result = Script::execute('hello.js', ['query' => ['name' => 'NCMB']]);

LICENSE

MIT LICENSE. see also LICENSE file., (*4)

The Versions

16/05 2018

dev-master

9999999-dev

PHP SDK for NIFCLOUD mobile backend (NCMB)

  Sources   Download

MIT

The Requires

 

The Development Requires

19/05 2017

0.1.1

0.1.1.0

PHP SDK for NIFTY Cloud mobile backend (NCMB)

  Sources   Download

MIT

The Requires

 

The Development Requires

19/05 2017

0.1.0

0.1.0.0

PHP SDK for NIFTY Cloud mobile backend (NCMB)

  Sources   Download

MIT

The Requires

 

The Development Requires