Download the PHP package kalimeromk/postal-tracking without Composer

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

Postal Tracking Package πŸ“¦

Advanced PHP package for tracking postal shipments from Posta na Severna Makedonija with multi-framework support, comprehensive error handling, and high-performance tracking capabilities. Features Laravel integration, Yii framework support, and Native PHP usage with configurable caching, retry mechanisms, and automatic data transformation.

πŸ“‹ Table of Contents

✨ Features

πŸ“¦ Installation

Requirements

Install via Composer

Verify Installation

πŸš€ Quick Start

Basic Usage

With Configuration

πŸ”§ Framework Integration

Laravel Setup

The package auto-registers its service provider and facade. No additional configuration required!

Basic Usage

Controller Example

Publish Configuration (Optional)

Service Provider Registration

The package automatically registers itself. If you need manual registration, add to config/app.php:

Yii Framework Setup

Use the service directly in your controllers or components.

Basic Usage

Controller Example

Component Registration

Add to your config/web.php or config/console.php:

Native PHP Setup

No framework required! Perfect for standalone applications, microservices, or CLI tools.

Simple Tracker Class

Web Application

Command Line Usage

πŸ“š Usage Examples

Advanced Configuration

Batch Processing

Error Handling

πŸ“– API Reference

PostalTrackingService Class

Constructor

Methods

trackShipment()

Parameters:

Returns: array - Tracking data with success status

Configuration Methods

Response Format

Success Response

Error Response

Exception Classes

PostalTrackingException

Base exception class for all postal tracking related errors.

InvalidTrackingCodeException

Thrown when the tracking code format is invalid.

ApiException

Thrown when API communication fails.

βš™οΈ Configuration

Environment Variables

Create a .env file in your project root:

Programmatic Configuration

Framework-Specific Configuration

Laravel

Publish the config file:

Then edit config/postal-tracking.php:

Yii

Add to your configuration:

πŸ§ͺ Testing

The package includes comprehensive test coverage with PHPUnit.

Run Tests

Test Coverage

Example Test

πŸ› οΈ Development

Code Style

The package follows PSR-12 coding standards.

Static Analysis

Development Setup

  1. Clone the repository
  2. Install dependencies: composer install
  3. Run tests: composer test
  4. Fix code style: composer cs-fix

Contributing Guidelines

  1. Follow PSR-12 coding standards
  2. Write tests for new features
  3. Update documentation
  4. Ensure all tests pass
  5. Submit a pull request

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Commands

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❀️ by KalimeroMK

πŸ“ž Support

If you encounter any issues or have questions:

πŸ”— Related Projects


All versions of postal-tracking with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-curl Version *
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 kalimeromk/postal-tracking contains the following files

Loading the files please wait ...