Download the PHP package ibibicloud/cloudflare without Composer

On this page you can find all versions of the php package ibibicloud/cloudflare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloudflare

ibibicloud cloudflare

安装

composer require ibibicloud/cloudflare

配置文件

// cloudflare 配置
return [
    'D1' => [
        'accountId' => 'a529401f93143f3b8b2ba33c6123092e16ebb',
        'token'     => 'Bearer cfat_OOUYuXNd123sZBOwURmcDwR123dasd5123HlpKmpFSJFadsaLrFpO3a011256d',
        'dbId1'     => '3da81598-e252-4552-24a5-5b3c86417120',
    ],
];

D1 SQL 数据库

CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    nickname TEXT NOT NULL,
    avatar TEXT NOT NULL,
    signature TEXT NOT NULL,
    aweme_count INTEGER NOT NULL DEFAULT 0,
    follower_count INTEGER NOT NULL DEFAULT 0,
    following_count INTEGER NOT NULL DEFAULT 0,
    total_favorited INTEGER NOT NULL DEFAULT 0,
    sec_user_id TEXT NOT NULL,
    uid TEXT NOT NULL,
    unique_id TEXT NOT NULL,
    user_age TEXT NOT NULL,
    create_time DATETIME DEFAULT CURRENT_TIMESTAMP,
    update_time DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS author (
    id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    nickname TEXT NOT NULL,
    avatar TEXT,
    signature TEXT,
    aweme_count TEXT,
    follower_count TEXT,
    total_favorited TEXT,
    sec_user_id TEXT NOT NULL,
    update_time TEXT NOT NULL
);
use ibibicloud\cloudflare\facade\D1;

// 查询
D1::table('users')->where('id', 8)->find();
D1::table('users')->where('id', '<', 10)->order('id DESC')->field('id, nickname')->limit(10)->select();     // 10=条数
D1::table('users')->where('id', '<', 10)->order('id DESC')->field('id, nickname')->limit(10, 20)->select(); // 10=条数 20=偏移量
D1::table('users')->where([
    ['nickname', '=', '张三'],
    ['aweme_count', '=', 125]
])->select());
D1::table('users')->count();

// 新增 支持 单条/多条
D1::table('users')->insert();

// 删除
D1::table('users')->where('id', 3)->delete();

// 更新
D1::table('users')->where('id', 4)->update(['nickname' => '李四']);

// 其他用法
D1::table('users')->where('id', 8)->value('nickname');
D1::table('users')->column('nickname');
D1::table('users')->column('nickname', 'id');

// 列出所有数据库
D1::DataBaseList();

// 连接指定数据库 ID
D1::database($dbId)->more...;

// 获取最后一次 SQL 语句
D1::table('users')->getLastSql();

All versions of cloudflare with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ibibicloud/tools Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ibibicloud/cloudflare contains the following files

Loading the files please wait ...