PIP is a tiny application framework built for people who use a LAMP stack.

Related tags

Frameworks PIP
Overview

I have created new version of PIP from my extended project of BABAERON Framework. I called it Lavalust Framework. I used Codeigniter styles and some of its keywords but different classes content. I will soon make it public so that others could use it and contribute for its development. By the way, it was not intended for large industry projects for I made it simple as possible as part of my teaching methods especially in OOP MVC pattern.

LavaLust Framework

PIP

PIP is a tiny application framework built for people who use a LAMP stack. PIP aims to be as simple as possible to set up and use.

Visit http://gilbitron.github.com/PIP for more information and documentation.

Requirements

  • PHP 5.1 or greater
  • MySQL 4.1.2 or greater
  • The mod_rewrite Apache module

Installation

  • Download PIP and extract
  • Navigate to application/config/config.php and fill in your base_url
  • You are ready to rock! Point your browser to your base_url and hopefully see a welcome message.

Documentation

Visit http://gilbitron.github.com/PIP to see the documentation.

License

PIP is released under the MIT license.

Comments
  • Neater RewriteRule

    Neater RewriteRule

    Allows tidier rewrite rules in .htaccess, also negates need for RewriteBase configuration in initial setup.

    The logic may need a bit of explaining.

    For a request like http://local.host/PIP/class/function/p1/p2 you get the following variables.

    $_SERVER['REQUEST_URI'] == '/PIP/class/function/p1/p2' // $request_url
    $_SERVER['PHP_SELF']    == '/PIP/index.php'            // $script_url
    

    PHP_SELF gives the same value as SCRIPT_NAME, I think this is the best one to use, but I'm not 100%. See http://stackoverflow.com/questions/279966/php-self-vs-path-info-vs-script-name-vs-request-uri

    The $url is built in three stages.

    1. Use str_replace to remove index.php from $script_url leaving the path base /PIP/
    2. Use preg_replace to remove only the 1st occurrence of /PIP/ from $request_url
    3. Trim end slashes as before

    This leaves you with only the relevant part of the path string class/function/p1/p2

    preg_replace is used to remove only the first occurrence of the base path. This means that urls like http://local.host/PIP/class/function/PIP/p1/p2 are correctly filtered as class/function/PIP/p1/p2 not class/functionp1/p2.

    I'm not sure how clear this is in the source. If you think it's read better in some other format, that's fine.

    You may also notice my OCD for aligning operators on neighbouring lines, I am taking medication for this.

    opened by craig552uk 4
  • Removed closing php tags

    Removed closing php tags

    Removed closing php tags to prevent potential 'Headers already sent' errors. Some people think this is best practice, some don't. I'll leave it up to you to decide whether you'd like to make this change or not.

    opened by craig552uk 2
  • One New Line, Infinite Arguments

    One New Line, Infinite Arguments

    Gilbert,

    I've added a new line of code that allows the controller actions receive any number of arguments. I thought it would be a good one line change that would add some flexibility without bogging anything down. I know you want to keep this as simple as possible, so additions should be done sparingly to keep in the spirit of the framework.

    I've also decided to use this project as the base for a framework that I am working on. It is named pep in the spirit of this framework. I restructured it a bit and added themes, templating and language support so far. I also added SQLite for a simple drag and drop database component. Next stuff I'm doing for this project is some authentication and a basic admin section. Feel free to check it out here.

    https://github.com/robertabramski/pep

    opened by robertabramski 1
  • Comments et. al.

    Comments et. al.

    This was intended to just be about adding in phpdoc style comments for everything.

    But I also moved the load functions to a separate class so the can be called from within models as well as controllers.

    And a few other little bits.

    opened by craig552uk 1
  • Moved CSS File

    Moved CSS File

    Created folder structure for static content. Moved CSS file from application/view folder to static/css Added .gitignore files to preserve folder structure. Added BASE_URL link to CSS in header.php.

    Also, style.css is full of styles, are these from another project?

    opened by craig552uk 1
  • Lord have mercy on people who use this repo

    Lord have mercy on people who use this repo

    I downloaded it thinking it may help me understand some basic MVC concepts. -- that is not what happened. Better change the name from PIP to "Frameworks the bad way"

    opened by samayo 0
  • Change to Segment Helper Function

    Change to Segment Helper Function

    I changed the segment function to use REQUEST_URI from the $_SERVER array. The $_GET['_url'] variable wasn't working for me. I couldn't find any documentation of this variable being in the $_GET array by default. This new function also does an integer check to the variable passed in and returns false if not an integer.

    opened by robertabramski 0
  • Added functions to model.php

    Added functions to model.php

    Just some useful functions I've chucked in after playing around with PIP for a recent project.

    escapeArray applys mysql_real_escape_string recursively to an array.
    to_bool to_date to_time to_datetime convert data types to MySQL compatible strings for use in building queries.

    opened by craig552uk 0
  • No index

    No index

    Edited to remove the need for empty index.html files in directories. Used Options -Indexes in .htaccess Added a .gitignore file in /application/plugins/ to preserve folder structure when committed.

    opened by craig552uk 0
  •  Error not receiving a parameter

    Error not receiving a parameter

    Hi, I'm using the framework, I like it because it's simple. I have a problem: What happens if I don't receive a parameter in a function? I selling error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function Usuario::restablecer(), 0 passed in C:\laragon\www\lidcon\system\pip.php on line 176 and exactly 1 expected

    I tried to validate if the variable is defined but still I have the same error

    opened by devkyo 5
  •  mysql_pconnect()

    mysql_pconnect()

    Hi i get this on using PIP "Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead" how much important is this message? how can i change it to using PDO or mysqli instead? why u don't fix this?

    opened by BahramElf 1
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 0
  • upgraded to mysqli,supports query string parameters in url

    upgraded to mysqli,supports query string parameters in url

    previously when query string parameters were passed it would be considered as the url. Now they can be accessed separately and even upgraded to mysqli

    opened by theevilhead 0
Owner
Ron Marasigan
BSIT Graduate / Masters of Science in Information Technology / IT Instructor @ Mindoro State College of Agriculture and Technology / Web Developer / Programmer
Ron Marasigan
Biny is a tiny, high-performance PHP framework for web applications

Biny is high performance. Framework comes default with response time of less than 1ms. Stand-alone QPS easily up to 3000.

Tencent 1.7k Dec 9, 2022
CleverStyle Framework is simple, scalable, fast and secure full-stack PHP framework

CleverStyle Framework is simple, scalable, fast and secure full-stack PHP framework. It is free, Open Source and is distributed under Free Public Lice

Nazar Mokrynskyi 150 Apr 12, 2022
Spiral Framework is a High-Performance PHP/Go Full-Stack framework and group of over sixty PSR-compatible components

Spiral HTTP Application Skeleton Spiral Framework is a High-Performance PHP/Go Full-Stack framework and group of over sixty PSR-compatible components.

Spiral Scout 152 Dec 18, 2022
High performance, full-stack PHP framework delivered as a C extension.

Phalcon Framework Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resourc

The Phalcon PHP Framework 10.7k Jan 8, 2023
Flare is a PHP full-stack web framework that is light, fast, flexible, and secure.

Flare framework is a PHP full-stack web framework that is simple ,powerful , fast , flexible, and secure with long-term support.

Flare framework 3 Oct 24, 2022
A Faster Lightweight Full-Stack PHP Framework

A Faster Lightweight Full-Stack PHP Framework 中文版  Docker env Just one command to build all env for the easy-php How to build a PHP framework by ourse

Zhan Shi 769 Dec 8, 2022
CodeIgniter - a PHP full-stack web framework that is light, fast, flexible and secure

CodeIgniter 4 Development What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More informatio

CodeIgniter 4 web framework 4.5k Jan 4, 2023
FrankenPHP is a modern application server for PHP built on top of the Caddy web server

FrankenPHP: Modern App Server for PHP FrankenPHP is a modern application server for PHP built on top of the Caddy web server. FrankenPHP gives superpo

Kévin Dunglas 2.8k Jan 2, 2023
Fast php framework written in c, built in php extension

Yaf - Yet Another Framework PHP framework written in c and built as a PHP extension. Requirement PHP 7.0+ (master branch)) PHP 5.2+ (php5 branch) Inst

Xinchen Hui 4.5k Dec 28, 2022
This JSON marshaller is based on the one built into FEAST framework

Standalone JSON marshaller based off the one built into FEAST framework at feast/framework on packagist or feastframework/framework on github

null 13 Dec 9, 2022
Symprowire is a PHP MVC Framework based and built on Symfony, using the ProcessWire CMS as DBAL and Service Provider.

Symprowire - PHP MVC Framework for ProcessWire 3.x Symprowire is a PHP MVC Framework based and built on Symfony using ProcessWire 3.x as DBAL and Serv

Luis Mendez 7 Jan 16, 2022
A Slim PHP MVC framework built just for fun!

Aura Framework A Slim PHP MVC framework built just for fun! en: Note: This repository only contains the core code of the Aura framework. If you want t

Murilo Magalhães Barreto 2 Dec 16, 2021
A collapsible side navigation menu built to seamlessly work with Bootstrap framework

yii2-widget-sidenav This widget is a collapsible side navigation menu built to seamlessly work with Bootstrap framework. It is built over Bootstrap st

Kartik Visweswaran 36 Apr 9, 2022
Slim Framework view helper built on top of the Twig templating component

Slim Framework Twig View This is a Slim Framework view helper built on top of the Twig templating component. You can use this component to create and

Slim Framework 321 Dec 16, 2022
Coole is a PHP framework built on open source components

Coole is a PHP framework built on open source components. - Coole 是一个基于开源组件包构建的 PHP 框架。

guanguans 20 Jan 7, 2023
A set of ready-made regex helper methods for use in your Laravel application.

Regex A set of ready-made regex helper methods for use in your Laravel application. Installation composer require hotmeteor/regex Usage Regex comes wi

Adam Campbell 229 Dec 25, 2022
Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications

Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications

Silex 789 Dec 5, 2022
Quite possibly the smallest MVC framework you'll ever use.

Swiftlet Swiftlet is quite possibly the smallest MVC framework you'll ever use. And it's swift. Licensed under the MIT license. Buzzword compliance ✔

Elbert Alias 429 Nov 13, 2022