A framework to give you a headstart to your project. To understand more on the framework, A full documentation is on the way coming. Visit this repository regularly for more on the detailed documentation and community setup updates.
This guide will help you set up the SelfPhp Framework on your local machine and get it running.
Clone the SelfPhp Framework repository from GitHub to your local machine.
git clone https://github.com/Gicehajunior/selfphp-framework.git
After cloning the repository, navigate to the project folder.
cd selfphp-framework
You need to set up the configuration for your project. The framework uses a .env
file for environmental configurations. You can create the .env
file by copying the example template.
cp .env.example .env
Edit the .env
file to set up your database connection, app URL, and other necessary configurations.
nano .env
SelfPhp Framework relies on Composer for managing PHP dependencies. Install the required dependencies using the following command:
composer install
To set up the frontend assets (JavaScript, CSS, JQuery etc.), you will need to run the npm
build process.
First, install the required Node.js dependencies:
npm install
Then, build the assets:
npm run build
Once everything is set up, you can run the SelfPhp framework with the following command:
selfphp sp-cmd run -o 8200
- The
-o
flag overrides the default port (8000) and sets the server to run on port 8200. - If you do not specify the
-o
flag, the server will run on the default port, which is 8000.
This will start the framework and make it accessible at http://localhost:8200 (or http://localhost:8000 if you skip the -o
flag).
We welcome contributions! If you want to contribute to the SelfPhp Framework, please fork the repository and submit a pull request.
When submitting a pull request:
- Ensure that your code is properly tested.
- Follow the coding conventions used in the project.
- Provide a clear description of what your changes do.
If you encounter any bugs or issues, please report them by opening an issue on the GitHub repository.
To report an issue:
- Check the existing issues to see if the problem has already been reported.
- If not, create a new issue with a detailed description of the problem.
- Include any relevant error messages, logs, and steps to reproduce the issue
If you like my work, you can buy me a coffee. I will appreciate that a lot 🙏🏼
This project is licensed under the MIT License - see the LICENSE file for details.