This project serves as a starter for PHP experimentation using php 7 specifically for working with legacy systems. It provides a basic structure and configuration to help you kickstart your PHP development.
Before using this project, make sure you have the following installed on your system:
- Docker Desktop
- Node.js
- Clone the repository:
git clone https://github.com/GRuggieriTES/php7-starter.git - Navigate to the project directory:
cd php7-starter - Spin up the services
npm run start - Open a new shell terminal, to interact with the PHP command line, shell into the php container
docker exec -it php /bin/bash - After the above, should be in the working directory,
myappwhere the project resides. - Install PHP dependencies
composer install
- Within the docker terminal you used to to
npm startdoCTRL+c - Stop and delete containers
npm stop
Once the container is up and running
- The app:
http://localhost:3000/learning/variablesis the example php page for accessing the learnings. - For getting PHP setup inforamtion,
http://localhost:3000/info - An example cake PHP application
http://localhost:3000/usersshowing the same example as point 1, but generated MVC classes, full crud :) - The phpMyAdmin MySQL client app
http://localhost:3001Login - UN:myuser, PW:mypassword
Feel free to customize this project according to your needs. Here are a few areas you might want to consider:
- Update the project name and description in the
README.mdfile. - Modify the project structure to fit your application's requirements.
- Add your own PHP files and logic.
- Update the
composer.jsonfile to include any additional dependencies.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name - Make your changes and commit them:
git commit -m "Add your commit message" - Push to the branch:
git push origin feature/your-feature-name - Open a pull request.
This project is licensed under the MIT License.
