2017 © Pedro Peláez
 

library ark

A fundamental toolkit for PHP.

image

sinri/ark

A fundamental toolkit for PHP.

  • Saturday, July 14, 2018
  • by sinri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 18 Versions
  • 11 % Grown

The README.md

Ark

GitHub license GitHub release Packagist, (*1)

A fundamental toolkit for PHP 7., (*2)

composer require sinri/ark

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

If you have problem to connect to GitHub or too slow, try use mirror:, (*4)

composer config repo.packagist composer https://mirrors.aliyun.com/composer/, (*5)

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), (*6)

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., (*7)

Toolkit Map

Components

Basic Functions, (*8)

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

Database Related, (*9)

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

Email Related, (*10)

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

Queue Related, (*11)

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

Lightweight Directory Access Protocol, (*12)

  • sinri/ark-ldap Packagist

QR Code, (*13)

  • sinri/ark-qr-builder Packagist

Remote File System Access, (*14)

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

WebSocket Server, (*15)

  • 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., (*16)

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., (*17)

Class ArkCurl provides a higher level usage of CURL., (*18)

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.), (*19)

Class ArkPDO with model encapsulation are there for you Database Operation., (*20)

Class ArkSqlite3 is an extended tool for working on SQLite3., (*21)

Web Toolkit

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

For web service, Class TheArk contains:, (*23)

  • 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:, (*24)

  • 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., (*25)

Server Config Reference

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

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

For Nginx, you should use try_files., (*27)

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

Who use this?

Not so many in fact. Amongst them, Leqee is one., (*28)

Donation

BitCoin/BTC: 18wCjV8mnepDpLzASKdW7CGo6U8F9rPuV4, (*29)

Alipay Account:, (*30)

Alipay, (*31)

The Versions

14/07 2018

dev-master

9999999-dev

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/07 2018
21/05 2018
17/05 2018
07/05 2018

1.4.2

1.4.2.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/04 2018

1.4.1

1.4.1.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/04 2018

1.4

1.4.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/04 2018

1.3

1.3.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

1.2

1.2.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

1.1

1.1.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/03 2018

1.0

1.0.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/03 2018

0.11

0.11.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/03 2018

0.10

0.10.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

0.9

0.9.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

0.8

0.8.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/02 2018

0.7

0.7.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/02 2018

0.6

0.6.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/02 2018

0.5

0.5.0.0

A fundamental toolkit for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires