AMNP76 / php-webapp

A ready-to-use framework to write web applications in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

technicalguru/webapp

This is a PHP framework for the easy-to-start development of a website. It addresses a few basic needs that every developer faces when he wants to start a new website. This framework addresses:

  • Authentication and Authorization
  • Localization
  • Flexible design, theme and layout of websites and individual pages
  • Database Access (mostly MariaDB or MySQL)
  • Data Model abstract layer to avoid any SQL writing
  • Flexible URL routing (mapping the URL path to a specific Page class)
  • Logging
  • Email Sending
  • Application Configuration
  • Session Handling and Persistence

Most of them are not mandatory to use. The configuration allows to switch off many of them.

As I currently use this framework for my private projects only, there is not much documentation available yet. Feel free to ask questions or checkout also the php-webapp-template repository which provides starter templates.

The framework is mostly based on other PHP modules that are documented quite good. So you can consult them in order to understand some of the features.

Remember: technicalguru/webapp is a framework to ease and speed up your development of a new website. It cannot solve all your problems but is a good starting point.

License

This project is licensed under GNU LGPL 3.0.

Installation

By Composer

composer install technicalguru/webapp

By Package Download

You can download the source code packages from GitHub Release Page

Start a WebApp

The best way is to use a template from php-webapp-template repository but you can also start from scratch. You will need the configuration from application-example.php and the main index-example.php file in the root of your web app. Notice that your web server needs to route all requests to the index.php file. You could achieve this with this snippet:

    <IfModule mod_rewrite.c>
        Options -MultiViews

        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^ index.php [QSA,L]
    </IfModule>

in your .htaccess file

Contribution

Report a bug, request an enhancement or pull request at the GitHub Issue Tracker.

About

A ready-to-use framework to write web applications in PHP

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 53.3%Language:PHP 34.1%Language:CSS 10.4%Language:HTML 2.0%Language:Perl 0.1%Language:Shell 0.0%