Skip to content

vijinho/FFMVC

Repository files navigation

FFMVC PHP7

Travis CI Build Status Code Coverage Scrutinizer Code Quality

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 based on f3 settings or pre-configured f3 built-in SMTP object

Helpers\Validator

  • Validator.php - An extension to 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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages