### PHP-RETRIEVER AND SAMPLE CONTENT | SIMPLE MVC FRONT CONTROLLER MINI FRAMEWORK Version: 0.2 License: GPLv3 or later Requires at least: PHP 7.3+ Contributors: Amaro Guerra Rocha Source: https://github.com/amguecha/php-retriever-samples License URI: https://www.gnu.org/licenses/gpl-3.0.en.html ### 0. FILES MANIFEST. php-retriever-main (entries with * are files added/edited to/in base framework) | ├── configuration.php ├── database.php ├── LICENSE.txt (*) ├── README.txt (*) ├── retriever.php ├── router.php | ├── controllers │ ├── examples_controller.php (*) │ └── home_controller.php ├── models │ ├── examples_model.php (*) │ └── home_model.php ├── views | ├── components.php (*) | ├── content.php (*) | ├── cookie.php (*) | ├── database.php (*) | ├── files.php (*) | ├── get.php (*) | ├── icons.php (*) | ├── index.php (*) | ├── page.php (*) | ├── post.php (*) | ├── session.php (*) | └── errors | └── 404.php | └── public_html └── .htaccess ├── index.php ├── css │ └── bootstrap │ ├── bootstrap-css-5.1.1.css | ├── bootstrap-icons-1.5.0.css │ └── fonts │ ├── bootstrap-icons.woff │ └── bootstrap-icons.woff2 ├── images │ └── favicon.ico ├── js │ └── bootstrap │ └── bootstrap-js-5.1.1.js └── uploads (*) └── test-image.png (*) ### 1. INSTALLATION INSTRUCTIONS FOR TESTING IN LOCALHOST. FOR THE MAIN FRAMEWORK: Unpack the file in your Apache server's directory. Make sure the 'public_html' folder is the only one with public access. FOR THE SAMPLE CONTENT: Once the framework has been set up, unpack the file inside the root directory of the framework itself. Some files will be overwritten, others will be pasted and will be new. This framework needs at least an Apache server configured with PHP 7.3+ and Mysql. Configure the required global constants that are placed in '/configration.php', to match your installation, domain, server setup and database credential names. A Mysql database is required for this framework. In Linux, you can start Mysql with this log in command: mysql -u root -p Then, create the database and a testing table: CREATE DATABASE IF NOT EXISTS php_retriever_main; USE php_retriever_main; CREATE TABLE IF NOT EXISTS crud (id int NOT NULL, title text NOT NULL, description text NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE crud ADD PRIMARY KEY (id); ALTER TABLE crud MODIFY id int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; COMMIT; ### 2. GENERAL OPERATING INSTRUCTIONS. This framework uses $_SERVER['REQUEST_URI'] to build up 'paths' to classes and methods, redirecting the user in that manner. IMPORTANT: The Front Controller (/public_html/index.php) is in charge of passing the path information from a URL (like this one 'www.domain.com/controller/method') to the router '/router.php', which then will point to the corresponding controller file and method. No more 'levels' are allowed, just controller->method. IMPORTANT: Controller files must be named as '*classname*_controller.php' and must have only one class inside called after the file name '*classname*_controller', where *classname* is up to you. IMPORTANT: model files must be named as '*classname*_model.php' and must have only one class inside called after the file name '*classname*_model', where *classname* is up to you. The retriever class, inside '/retriever.php' is the one used to include, load data and instantiate both models and views inside methods of each controller. When loading files, the complete name and extension must be given. Once all is set up, open your terminal, go to 'public_html' folder, and run a PHP server on a free port to start exploring. In Linux, you can run these commands: cd /var/www/html/php-retriever-main/public_html/ php -S localhost:8080 ### 3. LIST OF INCLUDED COMPONENTS. a) Bootstrap CSS and JS v5.1.1 b) Bootstrap Icons v1.5.0 d) Sample content: (extra files added to base framework) d.1) in views: bootstrapicons.php components.php content.php cookie.php database.php files.php get.php page.php post.php session.php d.2) in models: examples_model.php d.3) in controllers: examples_controller.php d.4) in public_html: /uploads (and its content) ### 4. LICENSE. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more information, check LICENCE.txt. This program bundles the following third-party resources: Bootstrap front-end toolkit. License: The MIT License (MIT). Source: https://github.com/twbs/bootstrap Copyright (c) 2011-2021 The Bootstrap Authors, 2011-2021 Twitter, Inc. Bootstrap icon library. License: The MIT License (MIT). Source: https://github.com/twbs/icons Copyright (c) 2011-2021 The Bootstrap Authors, 2011-2021 Twitter, Inc.
Sample Content - PHP Retriever - Simple MVC Front Controller Mini Framework
Overview
You might also like...
A simple Content Moderation System for Laravel 5.* that allows you to Approve or Reject resources like posts, comments, users, etc.
Laravel Moderation A simple Moderation System for Laravel 5.* that allows you to Approve or Reject resources like posts, comments, users, etc. Keep yo
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css
Laravel Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size WITHOUT cs
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css. Requires Livewire and AlpineJS.
Laravel Livewire Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size W
A platform to create documentation/wiki content built with PHP & Laravel
BookStack A platform for storing and organising information and documentation. Details for BookStack can be found on the official website at https://w
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Laravel Love Introduction Laravel Love is emotional part of the application. It let people express how they feel about the content. Make any model rea
Base library for repeated layout fields, content builders and other collection components
laravel-flexible-content This package's only purpose is to build custom repeated layout components, such as Laravel Nova's Flexible Content field or y
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Laravel Befriended Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked
Laravel Seo package for Content writer/admin/web master who do not know programming but want to edit/update SEO tags from dashboard
Laravel Seo Tools Laravel is becoming more and more popular and lots of web application are developing. In most of the web application there need some
Home of the Joomla! Content Management System
Joomla! CMS™ Build Status Drone-CI AppVeyor PHP Node npm Overview This is the source of Joomla! 4.x. Joomla's Official website. Joomla! 4.0 version hi
Quickly identify controller methods with no route in your Laravel applications.
Orphan Controller Quickly identify controller methods with no route in your Laravel applications. Installation You can install the package via Compose
A base API controller for Laravel that gives sorting, filtering, eager loading and pagination for your resources
Bruno Introduction A Laravel base controller class and a trait that will enable to add filtering, sorting, eager loading and pagination to your resour
A sample application with a multistep form built with Livewire.
About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie
Websockets-Client (Sample) laravel
About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie
A Simple Store Front Web Application using Laravel and Bootstrap.
About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie
Criação de um framework mvc do zero para estudo
PHP + PostgreSQL + PGAdmin4 + Composer A complete template for small projects Running the project To run this project you only need to run docker-comp
A quick and incomplete example of how to validate a form using a FormValidator class on the simple-mvc
Simple MVC Description This repository is a simple PHP MVC structure from scratch. It uses some cool vendors/libraries such as Twig and Grumphp. For t
Video Chat application built using Metered Video SDK, with PHP Laravel Backend and JavaScript Front-End
Group Video Chat App with PHP Laravel and JavaScript Powered by Metered Video SDK Overview This application is a highly scalable group video calling a
CRUD COM LARAVEL 8, MVC, LOGIN E ROTAS, PRONTO PARA VOCE USAR NOS SEUS PROJETOS
CRUD COM LARAVEL 8, MVC, LOGIN E ROTAS, PRONTO PARA VOCE USAR NOS SEUS PROJETOS. Para rodar o Crud é preciso instalar o composer e um servidor localho
Essa é uma aplicação RESTFul API e também uma aplicação MVC usando Blade construída com Laravel 8.
MVC - API - CRUD - REVENDA DE CARROS Essa é uma aplicação RESTFul API e também uma aplicação MVC usando Blade construída com Laravel 8. Neste projeto