hugol / use-case
use case for Sprint Technology
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hugol/use-case
Requires (Dev)
- php: >=8.2
This package is auto-updated.
Last update: 2025-12-29 04:07:46 UTC
README
Use case for Sprint Technology
Installation
execute the following command in your directory
composer require hugol/use-case:dev-main
setup
require vendor/autoload.php in your index.php
then use Hugol\UseCase\BoardingCardManager
new BoardingCardManager('your-file.extension')
Your file need to be at the root of your project
file extension supported: PHP, JSON
Exemple of file:
<?php return [ ['from' => '', 'to' => '', 'seat' => '', 'type' => ''], ];
data format
| name | type | description |
|---|---|---|
from |
string | start point |
to |
string | end point |
seat |
string | seat number |
type |
string | type of vehicule (bus, train, plane) |
reference |
string | reference of the boarding card |
dock |
string | only trains dock from wich the train leaves |
gate |
string | only plane gate through which we board the plane |
transfer |
boolean | only plane are the baggages automaticaly transferred from last travel |