Download the PHP package boatrace/types without Composer

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

🚤 Boatrace Types

php stable license

Boatrace Types は、boatrace/* パッケージ群が共有する契約(interface)と Enum を提供する PHP ライブラリです。実装は持ちません。

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

📦 Requirements

💾 Installation

⚡ Usage

Enums

スクレイパの戻り値に含まれる *_number は、対応する Enum の値です。名前から引く fromName()、一覧を配列で返す toArray() を共通で持ちます。

取得結果
Enum 値 説明
Stadium 1〜24 場(桐生〜大村)
Grade 1〜6 グレード(SG / G1 / G2 / G3 / OPEN / PG1)
Rank 1〜4 級別(A1級〜B2級)。shortName() は A1
Prefecture 1〜47 都道府県。shortName() は 福岡 のように末尾を除いた形
Place 1〜16, 99 着順と失格・返還の区分。shortName() は結果表の表記(1、F、妨 など)
Technique 1〜6 決まり手(逃げ〜恵まれ)
Weather 1〜6, 99 天候。shortName() は 曇 のような 1 文字表記
WindDirection 1〜17 風向(北〜北北西、無風)。fromValue() は null を通す from()
Part 1〜8 部品交換の部品。fromShortName() は公式サイトの略号(キャブ)から引く
Absence 1〜4 ボートキャストで本文を採れなかった理由(未公開 / 想定外 / 発売前 / 中止)。fromStatus() はファイルのステータス行から引く

fromName() / fromShortName() は null を渡すと null を返し、未知の名前には ValueError を投げます。

Contracts

Contracts/ 配下に、各モジュールの facade / dispatcher / response の契約を置いています。実装は boatrace/core の CoreContainer が契約名から解決します。

名前空間 実装パッケージ
Contracts\Core / Contracts\Definitions boatrace/core
Contracts\Browser / Converter / Filter / Json / Normalizer / Progress / Throttler / Timing / Trimmer / Tsv / Validator boatrace/support
Contracts\Scraper / BatchScraper / Parser boatrace/scraper
Contracts\BoatcastScraper / BatchBoatcastScraper boatrace/scraper-boatcast

利用側で実装を差し替える場合は、これらの契約を実装したクラスを CoreContainer::addDefinitions() で登録します。例えば Contracts\Browser\BrowserObserver を実装すると、HTTP レスポンスの Server-Timing を監視できます。

📄 License

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


All versions of types with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
php-di/php-di Version ^7.0
symfony/browser-kit Version ^8.0
symfony/dom-crawler 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/types contains the following files

Loading the files please wait ...