Download the PHP package ephect-io/create-app without Composer
On this page you can find all versions of the php package ephect-io/create-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ephect-io/create-app
More information about ephect-io/create-app
Files in ephect-io/create-app
Package create-app
Short Description Effective!
License GPL-3.0+
Homepage https://ephect.io
Informations about the package create-app
Create-App
This is a quick start to help you create a working Ephect project.
This repository is not intended to be cloned. Instead, follow the instructions below.
Requirements
Since Ephect is an hybrid environment, you need both PHP and NodeJS installed.
It's highly recommended to use the last versions.
Ephect is compatible with PHP 8.3 and NodeJS LTS 20.12.0.
Create a basic Ephect application project
Open a terminal and type:
Move to my-project directory.
You will see an app directory in which you will find the standard structure of an Ephect application:
the public directory is not empty but its files are later overwritten by assets files:
Build the application
First, install all needed modules.
To run the application without setting up a web server, you need to serve the application in a separate terminal.
Open another terminal, move to your project directory and type:
Come back to the first terminal and type
You should see something like this:
It's a simple page with 2 children components; the first passes values to the second with useState hook.
You will find the generated application in the directory cache.
Nota bene
While this sample works well enough in the PHP embedded server, consider setting up a dedicated web server for your project.
Find more information in the Documentation repository https://github.com/ephect-io/documentation.