承接 sinri/ark 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sinri/ark

Composer 安装命令:

composer require sinri/ark

包简介

A fundamental toolkit for PHP.

README 文档

README

GitHub license GitHub release Packagist

A fundamental toolkit for PHP 7.

composer require sinri/ark

It is a new generation for Enoch Project, as which might continuously support projects in PHP 5.4+.

If you have problem to connect to GitHub or too slow, try use mirror:

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

And every living substance was destroyed which was upon the face of the ground, both man, and cattle, and the creeping things, and the fowl of the heaven; and they were destroyed from the earth: and Noah only remained [alive], and they that [were] with him in the ark. (Genesis 7:23)

Environment

Ark requests PHP 7. If you need Redis, you might need to declare the reference of predis/predis. Since version 2.1, Ark-Core and Ark-Curl use version 2. Since version 2.4, Ark-Cache use version 2 to support PSR-16. Since version 3.3, Ark-Web became independent as 1.0.0. Now Ark has been in 3.x.

Toolkit Map

Components

Basic Functions

  • sinri/ark-core Packagist
  • sinri/ark-web Packagist
  • sinri/ark-curl Packagist
  • sinri/ark-cache Packagist
  • sinri/ark-xml Packagist

Database Related

  • sinri/ark-pdo Packagist
  • sinri/ark-mysqli Packagist
  • sinri/ark-sqlite3 Packagist
  • sinri/ark-couchdb Packagist
  • sinri/ark-redis Packagist

Email Related

  • sinri/ark-mail Packagist
  • sinri/ark-imap Packagist

Queue Related

  • sinri/ark-queue Packagist
  • sinri/ark-lock Packagist
  • sinri/ark-event Packagist

Lightweight Directory Access Protocol

  • sinri/ark-ldap Packagist

QR Code

  • sinri/ark-qr-builder Packagist

Remote File System Access

  • sinri/ark-ftp Packagist
  • sinri/ark-sftp Packagist

WebSocket Server

  • sinri/ark-websocket Packagist Version

Independent Toolkit

Class ArkHelper is designed for the convenience of developing, it help you to operate data structure safely, and some environment shortcuts.

Class ArkLogger is an implementation of PSR-3. You might create an instance with certain log storage path, or use a silent one as default.

Class ArkCurl provides a higher level usage of CURL.

Class ArkCache defined the interface of being a cache handler, and implementations by File System and Redis, also the fallback choice Dummy. (Note, if you want to use Redis, predis/predis is needed in composer.json.)

Class ArkPDO with model encapsulation are there for you Database Operation.

Class ArkSqlite3 is an extended tool for working on SQLite3.

Web Toolkit

The main reference is Ark(), which would provide a singleton of class TheArk.

For web service, Class TheArk contains:

  • Method webInput, give the global instance of class ArkWebInput.
  • Method webOutput, give the global instance of class ArkWebOutput.
  • Method webService, give the global instance of class ArkWebService.

For general routines, the multi-instance hubs (register and get) are provided:

  • Hub for ArkPDO
  • Hub for ArkLogger
  • Hub for ArkCache

CLI Toolkit

Class ArkCliProgram is designed to support a whole CLI project with certain namespace and class rule.

Server Config Reference

If you use Apache to load the project, you need to add the .htaccess file and open the allow override option.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

For Nginx, you should use try_files.

server {
    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }
}

Who use this?

Not so many in fact. Amongst them, Leqee is one.

Donation

BitCoin/BTC: 18wCjV8mnepDpLzASKdW7CGo6U8F9rPuV4

Alipay Account:

Alipay

sinri/ark 适用场景与选型建议

sinri/ark 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.9k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2018 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 sinri/ark 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sinri/ark 我们能提供哪些服务?
定制开发 / 二次开发

基于 sinri/ark 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 9
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-13