PHP code example of nickpoulos / laravel-svelte-direct

1. Go to this page and download the library: Download nickpoulos/laravel-svelte-direct library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nickpoulos / laravel-svelte-direct example snippets


<!doctype html>
<html>
<head>
    <title>My Example App</title>    
</head>
<body>
<div class="container">

    <!-- example Svelte components here --> 
    <app-header>
        <flash-message type="success" message="test" />
    </app-header>
    <!-- end components -->
    
</div>

<script type="text/javascript">
    // tie your components together using vanilla js or something ike alpine
</script>

<!-- START Svelte Direct Component JavaScript -->
@stack('sveltedirect')
<!-- END Svelte Direct Component JavaScript -->

</body>
</html>