Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.
/ BlueUtils Public archive

Utilities for PHP and JS - Part of BluePost Development's long term commitment to open source

License

Notifications You must be signed in to change notification settings

BluePost/BlueUtils

Repository files navigation

BlueUtils

Simple utils for PHP and JavaScript

Contents

  • BlueAjax - Simple utilities for dealing with api requests in php and JS
  • BlueAuth - A php auth library which is an easy way to set up a simple login/signup API
  • BlueEmail - A wrapper for sending emails easily with SendGrid
  • BlueError - A library for standardising API error methods
  • BlueFiller - A simple utility for putting data into html pages
  • BlueUtilsSettings - The main way of configuring
  • Bundler - A utility that allows development of twig files that can then be compiled to static HTML files
  • Loadr - A JS utility for loading in handlebars template
  • Setup - A script for initialising a new project

Getting started

To start a new project do the following:

  • Install and globally alias Composer (install and run mv composer.phar /usr/local/bin/composer)
  • Clone the repo into an empty project folder
  • cd into BlueUtils/Setup
  • Execute ./setup.sh -n
  • To update the BlueUtils components do this:
    • git pull
    • cd Setup
    • ./setup (VERY IMPORTANT TO REMEMBER NOT INCLUDE a -n)
  • Change settings in the file helpers/BlueUtilsSettings/BlueUtilsSettings.php

The file helpers/header.php should be included in all API pages. It sets up all php modules (Ajaz, auth, email, error) by default.

TODO

  • Update all docs - especially JS (Show where files are after ./setup.sh)

Loadr

  • Use promises for the main object
    • Find a way to have default actions
  • Add a default onFail option

BlueAjax

BlueError

Bundler

Setup

  • Allow custom writing of the .htaccess file

Contributing

To contribute please submit a pull request

Licence

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About

Utilities for PHP and JS - Part of BluePost Development's long term commitment to open source

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published