Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vijinho/ffmvc

Set of classes to use in a Fat-Free Framework MVC Project - used in example project https://github.com/vijinho/f3-boilerplate
https://github.com/vijinho/ffmvc

f3-boilerplate fat-free-framework helpers mvc php7

Last synced: 17 days ago
JSON representation

Set of classes to use in a Fat-Free Framework MVC Project - used in example project https://github.com/vijinho/f3-boilerplate

Awesome Lists containing this project

README

        

# FFMVC PHP7

[![Travis CI](https://travis-ci.org/vijinho/FFMVC.svg?branch=dev-master)](https://travis-ci.org/vijinho/FFMVC)
[![Build Status](https://scrutinizer-ci.com/g/vijinho/FFMVC/badges/build.png?b=dev-master)](https://scrutinizer-ci.com/g/vijinho/FFMVC/build-status/dev-master)
[![Code Coverage](https://scrutinizer-ci.com/g/vijinho/FFMVC/badges/coverage.png?b=dev-master)](https://scrutinizer-ci.com/g/vijinho/FFMVC/?branch=dev-master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/vijinho/FFMVC/badges/quality-score.png?b=dev-master)](https://scrutinizer-ci.com/g/vijinho/FFMVC/?branch=dev-master)

Files used by the https://github.com/vijinho/f3-boilerplate project.

This small library of classes can be used to start your own project based on a clone of the code in f3-boilerplate.

## Files

- `src/App.php` - Loads the configuration file and sets the environment based on project layout of f3-boilerplate. Also contains the shutdown function to log the memory used and database queries.
- `src/Exceptions.php` - Base exceptions

## src/Helpers

- `DB.php` - Methods for parsing a http-style DSN and/or db params from a config array (or file) and return a connection to the database.
- `Notifications.php` - A general class to store/retrieve user notification (flash) messages in an array to the f3 hive.
- `Response.php` - A class to return a JSON-encoded HTTP message.
- `Str.php` - General string utility functions.
- `Time.php` - Simple date/time utility methods
- `Url.php` - General helper methods to create internal/external links.
- `Mail.php` - A wrapper to return a pre-configured instance of [PHPMailer](https://github.com/PHPMailer/PHPMailer) based on f3 settings or pre-configured f3 built-in SMTP object

### Helpers\Validator

- `Validator.php` - An extension to [GUMP](https://github.com/Wixel/GUMP) using mainly f3 string methods.

#### Filters

- filter_lower
- filter_upper
- filter_ltrim
- filter_rtrim
- filter_trim
- filter_translate
- filter_emojify
- filter_slug

#### Validators

- validate_valid_ip_public
- validate_valid_ip_not_public
- validate_valid_ip_reserved
- validate_valid_ip_private

Vijay Mahrra
http://www.urunu.com
----