xozymandias / postal
There is no license information available for the latest version (1.0.1) of this package.
Postal submodule
1.0.1
2025-09-05 20:37 UTC
Requires
- php: >=8.1
- ext-soap: *
- edzima/yii2-teryt: ^1.1
- kartik-v/yii2-widget-depdrop: ^1.0
- kartik-v/yii2-widget-select2: ^2.2
- wsdltophp/packagebase: ^5.0
- yiisoft/yii2: ^2.0
Requires (Dev)
- codeception/codeception: ^5.3
- codeception/lib-innerbrowser: ^4.0
- codeception/module-asserts: ^3.0
- codeception/module-filesystem: ^3.0
- codeception/module-yii2: ^1.1
- codeception/verify: ^3.0
- yiisoft/yii2-debug: ^2.1
- yiisoft/yii2-faker: ^2.0
- yiisoft/yii2-gii: ^2.2
Suggests
- yiisoft/yii2-bootstrap: Bootstrap 3 support
- yiisoft/yii2-bootstrap4: Bootstrap 4 support
- yiisoft/yii2-bootstrap5: Bootstrap 5 support
This package is auto-updated.
Last update: 2025-09-05 20:39:31 UTC
README
Store and manage shipments in the database
Communicate with the Poczta Polska Api
INSTALLATION
Add following lines to require section in composer.json:
"xozymandias/postal": "1.0.0"
or use command
composer require xozymandias/postal
CONFIGURATION
config/web and config/test
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache', // <--- replace with DummyCache in test environment
],
]
'modules' => [
'teryt' => [
'class' => edzima\teryt\Module::class,
],
'postal' => [
'class' => XOzymandias\Yii2Postal\Module::class,
'modules' => [
'poczta_polska' => [
'class' => XOzymandias\Yii2Postal\modules\poczta_polska\Module::class,
'components' => [
'repositoriesFactory' => [
'class' => XOzymandias\Yii2Postal\modules\poczta_polska\repositories\RepositoryFactory::class,
'repositoryConfig' => [
'cache' => [
'class' => FileCache::class // <--- replace with DummyCache in test environment
]
]
],
],
'tracker' => [
'class' => XOzymandias\Yii2Postal\modules\poczta_polska\components\PocztaPolskaTracker::class,
],
'senderOptions' => [
'class' => XOzymandias\Yii2Postal\modules\poczta_polska\sender\PocztaPolskaSenderOptions::class,
'login => 'login', // <--- replace with your login
'password' => 'password', // <--- replace with your password
'isTest' => true // <--- set only in test environment
]
],
],
'shipmentRelation' => [
'class' => XOzymandias\Yii2Postal\components\ShipmentRelationComponent::class,
'userClass' => User::class, // <--- replace with your User class
],
'shipmentUrl' => [
'class' => XOzymandias\Yii2Postal\components\ShipmentUrlComponent::class
]
]
],
config/console
'controllerMap' => [
'poczta-wsdl' => [
'class' => XOzymandias\Yii2Postal\commands\WSDLController::class
]
]
Migration
config/console
'aliases' => [
'@XOzymandias/Yii2Postal' => '@vendor/xozymandias/postal/src',
]
'controllerMap' => [
'migrate' => [
'class' => yii\console\controllers\MigrateController::class,
'migrationPath' => null,
'migrationNamespaces' => [
'XOzymandias\Yii2Postal\migrations',
'app\migrations', // <--- replace with your migrations
],
],
],
'modules' => [
'postal' => [
'class' => XOzymandias\Yii2Postal\Module::class,
'shipmentRelation' => [
'class' => XOzymandias\Yii2Postal\components\ShipmentRelationComponent::class,
'userClass' => User::class,
],
],
]
and use command
php yii migrate/up