nickyeoman/phpframework

Quick, easy to use framework.

4.0.6 2024-06-04 05:18 UTC

README

Links

Things you need to know

  1. Always run scripts from the project root directory (composer.json, .env also live here).

Requirements

  • ubuntu php-cli (sudo nala install php-curl php-xml php-mysql)
  • Install Composer

Easy Install

echo "Please enter the project name:"; read MYPRO; wget 4lt.ca/nyphp; bash nyphp $MYPRO; rm nyphp;

Now you should change your dotenv file;

Then run sudo docker-compose up -d.

Your development server is configured, use sass to modify the look.

Framework Documentation

Framework Philosophies

  1. Build websites fast
  2. A url should be modern, no GET statements (question marks).
  3. You should not have to define controllers, routes should be based on the url and the system should be able to figure them out.
  4. Docker is king
  5. Apache is not that bad

I went with bash for the automation process for two reasons:

  1. I'm more familiar with bash.
  2. It seemed more appropriate when working with docker containers.

Notes

add this to project composer:

    "autoload": {
        "psr-4": {
            "Nickyeoman\\Framework\\Controllers\\": "app/Controllers/"
        }
    }