2017 © Pedro Peláez
 

library giraffe

Ajax: Server/Client Helper/Router

image

jrsaunders/giraffe

Ajax: Server/Client Helper/Router

  • Tuesday, March 28, 2017
  • by JRSaunders
  • Repository
  • 2 Watchers
  • 0 Stars
  • 116 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Giraffe

Ajax: Server/Client Helper/Router, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

supports: * DataTables * Ajax Uploads * Redirects * Notifications * Modals * General all purpose Ajax * Debugging, (*3)

Install: Server Side

index.php / bootstrap.php, (*4)

Add this to one or both of these php files:, (*5)

use Giraffe\Giraffe;
Giraffe::setEnvironment(ENVIRONMENT);
Giraffe::setProject('MY SITE NAME OR PRJECT NAME');
Giraffe::setDeveloperEmails(
     'me@mailprovider.co.uk,my_partner@theirmailprovider.co.uk'
);
Giraffe::setJSDIR(__DIR__ . '/public/assets/js/giraffe/');

Put a route in place to get to an ajax controller

Here is an example of how that ajax controller may look:, (*6)

namespace MyApp\Ajax;

use Giraffe\Giraffe;

class Ajax 
{
    public function someMethodYouRouteToForAjax()
    {
        $allowedControllers = [Login::class, Dashboard::class];
        new Giraffe($allowedControllers, 'MyApp\\Controller\\', 'ajax', MYAPP_PATH . '/Views/ajax/');
    }
}

Install: Client/Front End Side

Create a folder named giraffe in your js directory. Then chown apache:apache giraffe or chmod 777 giraffe., (*7)

Giraffe can update your Javascript File when composer updates the package., (*8)

Giraffe is designed to be used in conjunction with JQuery., (*9)

The Versions

28/03 2017

dev-master

9999999-dev

Ajax: Server/Client Helper/Router

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

by John Saunders

28/03 2017

v1.0.1

1.0.1.0

Ajax: Server/Client Helper/Router

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

by John Saunders

24/02 2017

v1.0.0

1.0.0.0

Ajax: Server/Client Helper/Router

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

by John Saunders