Skip to content

A "no framework" approach to PHP web development

License

Notifications You must be signed in to change notification settings

opensourcedoc/frameworkless-php

Repository files navigation

Frameworkless PHP

A "no framework" approach to PHP web development.

System Requirements

Back End

  • Production
    • A major GNU/Linux distribution is recommended
    • PHP 8.1 or above
  • Development

Front End

Install CLI Tools on Windows

> choco install php --version=8.1.21
> choco install composer
> choco install nodejs --version=18.16.1
> choco install rsync
> choco install sed

Usage

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

Copyright (c) 2021-2023 OpenTechTutorials. Licensed under MIT