✅ Overly-super-cautious "Hello World" in PHP7 and PHP8 for fun.
APACHE-2.0 License
This repo is an overly-cautious Hello-World PHP script for fun. It includes the following tests and CIs to just say "Hello-World!".
This repo uses the following CIs. On your use, register your repo first.
Copy, initialize the project, smoke test, add CI's ACCESS TOKEN then you're redy-to-go!
Create a new copy.
Choose one of the below commands that suits you.
# For composer user with NO Docker
composer create-project keinos/hello-world-tpl MyNewProject
cd MyNewProject
# For Docker and docker-compose user (No PHP nor composer user)
git clone https://github.com/KEINOS/TPL-PHP-HelloWorld.git MyNewProject
cd MyNewProject
Initialize.
Run the command below to initialize your project. This will re-write the package and vendor names to the provided name. (Ex. MyVendorName)
rm -rf .git
git init
./.devcontainer/initialize_package.php MyVendorName
Functioning test.
Before anything, run the tests to check it's basic test functionality.
composer test -- --all --verbose
Initial commit.
Commit your first change.
git add .
git commit -m 'initial commit'
Push the repo to GitHub then register it to the following CIs.
Re-name COVERALLS.env.sample
to COVERALLS.env
under ./tests/conf
.
Get your access token from COVERALLS' settings and place/replace the token value in COVERALLS.env
.
Run tests again to see COVERALLS' function-ability.
If the local test passes then commit changes and push.
If the tests passes on CIs then start building your project.
This repo can be developed via Docker. Run:
composer dev
Or, if you use Visual Studio Code (a.k.a. VS Code) and have Docker, then "Remote - Containers" extension is available.
In this case, you don't need to install the packages or even PHP on your local env.
git clone
this repo to your local..git
directory and initialize as a new one by git init
.This repo was very much inspired by: