Download the PHP package boatrace/core without Composer

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

🚤 Boatrace Core

php stable license

Boatrace Core は、boatrace/* パッケージ群が共有する PHP-DI コンテナと、facade / dispatcher / response の3クラス構成を支える共通部品を提供する PHP ライブラリです。

boatrace/scraper や boatrace/scraper-boatcast が依存しているため、通常は個別にインストールする必要はありません。

📦 Requirements

💾 Installation

⚡ Usage

CoreContainer

メソッド 説明
CoreContainer::getInstance($name) 契約(interface)名から実装を取得します。同じ契約は同じインスタンスを返します
CoreContainer::getContainer() PHP-DI の Container をそのまま取得します
CoreContainer::addDefinitions(...$paths) 定義ファイルを追加します。既存の定義を上書きでき、コンテナは再構築されます

コンテナは boatrace/support / boatrace/scraper / boatrace/scraper-boatcast の各パッケージが持つ config/definitions.php を自動で集約します。インストールされていないパッケージは無視されます。

定義の上書き

利用側で定義ファイルを用意し、addDefinitions() で読み込むと、ライブラリ側の定義を差し替えられます。

例えば、呼び出し間隔を 2.0 秒に変えるには次のように書きます。

HTTP レスポンスの Server-Timing を監視するには、BrowserObserver 契約を実装して定義を差し替えます。

Concerns

facade / dispatcher / response の定型処理を trait として提供します。boatrace/* の各パッケージが利用しています。

trait 説明
RejectsUndefinedCalls 未定義メソッドの呼び出しで BadMethodCallException を投げます
ResolvesFacadeResponse facade の戻り値を Response 契約へ包み、型を検査します
IteratesBatchTargets 一括取得で「開催中の場 × 指定レース」を走査し、進捗を表示します

📄 License

Boatrace Core は MIT license の元で公開されています。


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
boatrace/types Version ^0.1.0
php-di/php-di Version ^7.0
symfony/browser-kit Version ^8.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 boatrace/core contains the following files

Loading the files please wait ...