bravedave/green

Support Utiltiy for other applications

v20.12.01 2020-12-03 23:52 UTC

This package is auto-updated.

Last update: 2020-12-04 01:13:11 UTC


README

  • Beds - creates and maintains a list of beds suitable for describing houses (1 bed, 2 bed etc.)
  • Baths - creates and maintains a list of bathrooms suitable for describing houses (1 bathroom, 2 bath.. etc.)
  • People - creates and maintains a basic people database
  • Property - creates and maintains a basic property database
  • Postcodes - creates and maintains a basic postcode database, complete with list of australian postcodes to import
  • Users - creates maintains table of users with designate for active and admin priveligde

Installation

composer require bravedave/green

Use

use the composer scripts option to maintin a script which runs on upgrade

{
	"scripts": {
		"post-update-cmd": [
			"updater::run"
        ]
    }

}

and updater would be in your root directory and look like (for example):

<?php

use dvc\service;

class updater extends service {
    protected function _upgrade() {
        config::route_register( 'beds_list', 'green\\beds_list\\controller');
        config::route_register( 'baths', 'green\\baths\\controller');

        echo( sprintf('%s : %s%s', 'updated..', __METHOD__, PHP_EOL));

    }

    static function run() {
        $app = new self( application::startDir());
        $app->_upgrade();

    }

}