assegaiphp/common

The assegai/common package is a collection of commonly used utility classes and functions for AssegaiPHP projects. This package provides a set of tools that are designed to make it easier for developers to perform common tasks such as working with arrays, strings, and paths. The package also include

0.3.0 2023-01-25 23:37 UTC

This package is auto-updated.

Last update: 2024-10-26 04:31:07 UTC


README

Assegai Logo

A progressive PHP framework for building effecient and scalable server-side applications.

AssegaiPHP Common Library

Welcome to the AssegaiPHP common library! This package provides a set of common classes and utilities that can be used in any AssegaiPHP project.

The package includes the following features:

  • HttpClient class: A simple and flexible class for performing HTTP requests. It supports GET, POST, PUT, DELETE and other request methods, and can also handle request headers and parameters.
  • Utility classes: A collection of classes for common tasks such as logging, path manipulation, and more.

All classes are designed to be injectable and can be easily integrated into any AssegaiPHP application.

To install the package, simply require it in your composer.json file:

composer require assegaiphp/common

You can then use the classes in your application by importing the namespace:

use Assegai\Common\Http\HttpClient;

You can also use the #[Injectable] attribute to easily inject the HttpClient class into your controllers and services.

We hope you find the AssegaiPHP common library useful in your projects! If you have any questions or feedback, please open an issue on the GitHub repository.