Download the PHP package mjydh/httpclient without Composer

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

Ministerio de Justicia y Derecho Humanos.

Repositorio

https://packagist.org/packages/mjydh/httpclient

Instalación del paquete, por ahora la instalación se realiza manualmente.

Opcion via repositories, agregar al composer.json

"repositories": [
    {"type": "package", 
        "package": { 
            "name": "mjydh/httpclientbundle", 
            "version": "1.0.2", 
            "source": {
                "url": "https://github.com/camposgustavoj/httpclient.git",
                "type": "git",
                "reference": "main" 
            }
        }
    }
],

ejecutar composer require mjydh/httpclientbundle

1 - Descargar el proyecto desde https://github.com/camposgustavoj/httpclient
2 - crear la carpeta mjydh dentro de vendor y colocar el paquete descargado dentro.
3 - agregar en el autoload / psr-4 del composer.json del proyecto la referencia al paquete

4 - ejecutar

En caso de no poder ejecutar el dump-autoload (como sucede en adminformel y formularioelectronico), se debe agregar en \vendor\composer\autoload_psr4.php la siguiente linea

5 - Symfony < 3.4 Agregar en el AppKernel.php

5 - Symfony > 4 Agregar en el config/bundles.php

Como implementarlo

Fuctions

setHttpCodeResponses($codesArray)

 * Setea los http code que debe responder el execute.
 * Los http code que no esten en las lista, los maneja el execute automaticamente.
 * 
 * @param $codesArray array("http_code")

setCatchExceptions($catchExceptions)

 * Setea los http codes y sus respectivos mensajes de error que debe capturarse
 * 
 * @param $catchExceptions array("http_code" => "Mensaje de error")

Comentarios extras al proyecto

Versionado - https://semver.org/lang/es/

Dado un número de versión MAYOR.MENOR.PARCHE, se incrementa:

la versión MAYOR cuando realizas un cambio incompatible en el API, la versión MENOR cuando añades funcionalidad que compatible con versiones anteriores, y la versión PARCHE cuando reparas errores compatibles con versiones anteriores. Hay disponibles etiquetas para prelanzamiento y metadata de compilación como extensiones al formato MAYOR.MENOR.PARCHE.


All versions of httpclient with dependencies

PHP Build Version
Package Version
Requires php Version >=5.0.0
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 mjydh/httpclient contains the following files

Loading the files please wait ....