koyhoge / php-ncmb Goto Github PK
View Code? Open in Web Editor NEWNIFTY Cloud mobile backend SDK for PHP
License: MIT License
NIFTY Cloud mobile backend SDK for PHP
License: MIT License
PHPでmbaasのデータストアに登録をしたいと思い、php-ncmbを使って登録しようとしましたが、エラーが出てきました。解決方法の検討をよろしくおねがいします。
###test.php
<?php
require 'vendor/autoload.php';
use Ncmb\NCMB;
use Ncmb\Object;
$appKey ='794989f6e7e6a55fc6c21a079846453b40eae2425cb866a3c7ccc4625e6861b2';
$clientKey ='5a73aed2f40bf1d96b0a97ea70e408414723cc546b1bd5c9f2f71fe728f31eef';
NCMB::initialize($appKey,$clientKey);
$className = 'Friends';
$friend = new Object($className);
$friend->name = 'サーバルちゃん';
$friend->phrase = 'たーのしー';
$friend->save();
?>
###エラー内容
Fatal error: Cannot use Ncmb\Object as Object because 'Object' is a special class name in C:\xampp\htdocs\iot2\com\test.php on line 7
###使用
composer v1.6.5
xampp v3.2.2
php-ncmb v0.1.1
###参考
https://github.com/NCMBMania/php-ncmb
https://packagist.org/packages/ncmbmania/php-ncmb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.