PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 7, 2022

[FIXED] How to install PSR-7 http-message interfaces with Composer

 January 07, 2022     autoload, composer-php, dependencies, php, psr-7     No comments   

Issue

Is there maybe a way to install the PSR-7 HTTP message interfaces using Composer? I can't seem to find any information on the official github page, nor on the web.

Beeing a Composer-beginner, I would also like to ask, if it is possible to install packages from internet (maybe also outside Github) with Composer, even if they don't provide informations regarding installation using Composer.

Thank you very much.


Solution

You just have to select and install a PSR-7 implementation like laminas/laminas-diactoros or slim/psr7. You can find all composer packages on https://packagist.org/.

Example:

composer require slim/psr7


Answered By - odan
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing