Download the PHP package boubacamara/ganega-http without Composer

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

Ganega\Http

The Request and Response classes provide simple and intuitive interfaces for handling HTTP requests and responses in your PHP application. They encapsulate request data and HTTP responses, making their manipulation and management easier.

Purpose

The Request and Response classes are designed to simplify interaction with HTTP request and response data. They offer methods to check and retrieve request parameters, request body data, sessions, cookies, and server information, as well as to configure and send HTTP responses. This abstraction allows you to manipulate HTTP requests and responses cleanly and efficiently without directly accessing global variables like $_GET, $_POST, $_SESSION, $_COOKIE, $_SERVER, and $_FILES.

Ease of Use

The Request and Response classes provide a clear and concise interface with well-defined methods for common HTTP request and response operations. Using these classes helps reduce repetitive code and makes the code more readable and maintainable.

Installation

To use these classes in your project, simply include them in your PSR-4 autoloader or directly import them into your PHP file.

Usage Examples

Request Class

Create a Request instance from global variables

Check if the request has a body
Get the request body
Check and retrieve a request parameter
Manipulate sessions
Manipulate cookies
Retrieve URL and server information
Parse the request body

Response Class

Create a Response instance

Set the response content
Add content to the existing response
Set an HTTP header
Set the HTTP status code
Send the response

All versions of ganega-http with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json 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 boubacamara/ganega-http contains the following files

Loading the files please wait ....