1. Go to this page and download the library: Download ephect-io/framework 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/ */
ephect-io / framework example snippets
namespace QuickStart;
function MyComponent($children) {
return (<<< HTML
<h1>My component</h1>
<p>
{{ children }}
</p>
HTML);
}
namespace QuickStart;
function Home()
{
return (<<< HTML
<Mother>
<Slot name="title">Ephect in action !</Slot>
<Slot name="stylesheets">
<link rel="stylesheet" href="/css/app.css" />
</Slot>
<!--
The children container of the parent component
is filled with all that is not nested in slots
-->
<div class="App-content" >
<h1>Welcome Home!</h1>
</div>
<!-- end of children code -->
<Slot name="javascripts">
<script src="/js/ephect.js"></script>
</Slot>
</Mother>
HTML);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.