Simple utils for PHP and JavaScript
- 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
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
intoBlueUtils/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.
- Update all docs - especially JS (Show where files are after ./setup.sh)
- Use promises for the main object
- Find a way to have default actions
- Add a default onFail option
- Allow custom writing of the .htaccess file
To contribute please submit a pull request
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.