Download the PHP package bypassflow/value-kit without Composer

On this page you can find all versions of the php package bypassflow/value-kit. 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 value-kit

bypassflow/value-kit

bypassflow/value-kit は、パス指定で PHP の値を読み書きし、入れ子の値構造を軽く組み替えるためのヘルパーパッケージです。利用者向けの正本は配列系データ向けの ArrayPathAccessor としつつ、native array 専用、object 専用、混在値向けの下位ヘルパー、構造変換向けの KeyFlattener、RecursiveFilter、NestedGrouper も提供します。domain model や persistence の責務は持たず、PHP の値に寄り添う小粒ヘルパーを受ける基盤として扱います。

動作要件

インストール

クイックスタート

最短では ArrayPathAccessor からパス access を呼べます。

構造変換から始めたい場合は KeyFlattener を使えます。

公開 API

推奨系統

下位ヘルパー

Structure 系

Accessor の選び方

最初に選ぶ時は、普段使いの系統 から決めて、そこに収まらない時だけ PathAccessor を選ぶのが基本です。

推奨系統

下位ヘルパー

Structure の選び方

形を読むのではなく作り替えたい時は、Structure 系から選びます。

Structure の返却形

Structure 系はヘルパーごとに返す形が違います。先に返り値の形を揃えて読むと、公開面の違いが追いやすくなります。

Structure の policy

Structure 系では policy 名もなるべく固定しています。現時点の正本語彙は skip、normalize、keep first、keep last、throw on collision です。

注意点

主要メソッド / ヘルパー

Accessor のメソッド群

KeyFlattener のメソッド群

RecursiveFilter のメソッド群

NestedGrouper のメソッド群

補助文書

詳しい使い分けと利用例は USAGE.md にまとめています。


All versions of value-kit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5.0
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 bypassflow/value-kit contains the following files

Loading the files please wait ...