I am a true beginner with composer. I need to maintain an old PHP application with a lot of <script type="text/javascript" src="../../jquery.min.js"></script>. I would like to get rid of JQuery in the code base and rely on a package manager, so I discovered composer.
I wrote a basic composer.json then I naively wrote a test page while expecting to have JQuery loaded in my page.
<?php require_once 'vendor/autoload.php' ?>
<html>
<head>
<title>Where is my JQuery?</title>
<?php magic_to_get_jquery() ?> <!-- Is there any magic? -->
</head>
<body>
<div id="test">Test</div>
</body>
</html>
I don't really understand what I should do to get JQuery in this test page.
Here my composer.json
{
"name": "test/test",
"require": {
"components/jquery": "^3.3",
},
"authors": [
{
"name": "John Doe",
"email": "[email protected]"
}
]
}