A "no framework" approach to PHP web development.
- Production
- A modern browser like Chrome or Firefox
- Development
> choco install php --version=8.1.21
> choco install composer
> choco install nodejs --version=18.16.1
> choco install rsync
> choco install sed
Clone the repo locally:
$ git clone https://github.com/cwchentw/frameworkless-php.git myapp
$ cd myapp
Run your web app locally:
$ ./tools/bin/serve localhost:5000
To deploy your app to a PaaS, invoke this command:
$ ./tools/bin/publish
This command exposes all external files to public directory.
To deploy your app to an IaaS, invoke this command:
$ sudo ./tools/bin/sync-to /path/to/www
The root directory of your app is located in www directory.
Copyright (c) 2021-2023 OpenTechTutorials. Licensed under MIT