Igor Savinkin
Igor Savinkin

Reputation: 6267

Add a css library to a php project thru composer, but it does not work

I want to use a light css library pure. When I manually add it into my php/html file it works:

<head> 
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
</head>

After I require it thru composer:

composer require yahoo/purecss

the composer indeed adds the library to my composer.json:

{
    "require": {
        "yahoo/purecss": "^1.0"
    }
}

But it does not work.

The autoload.php is included:

<?php session_start();  
include "vendor/autoload.php";

What's wrong?

Upvotes: -1

Views: 480

Answers (1)

delboy1978uk
delboy1978uk

Reputation: 12365

Composer deals with PHP dependencies. Pure have made it installable via composer, but all that does is dump the files into your vendor folder. The rest will be up to you!

Upvotes: -1

Related Questions