opensourcedoc / frameworkless-php

A "no framework" approach to PHP web development

Repository from Github https://github.comopensourcedoc/frameworkless-phpRepository from Github https://github.comopensourcedoc/frameworkless-php

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

About

A "no framework" approach to PHP web development

License:MIT License


Languages

Language:JavaScript 27.8%Language:Shell 26.3%Language:Batchfile 24.1%Language:PHP 21.8%