Skip to content
Discussion options

You must be logged in to vote

The root of the project is automatically added to the include paths ;)
So in theory all you need to do in your /index.php is:

<?php
require_once('vendor/autoload.php');
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>Document</title>
</head>
<body>
</body>
</html>

You can find a more complex example in the starter repo: https://github.com/nititech/php-vite-starter

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by theking2
Comment options

You must be logged in to vote
4 replies
@donnikitos
Comment options

@donnikitos
Comment options

@kingma-sbw
Comment options

@donnikitos
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants