2017 © Pedro Peláez
 

library laravel-isams

Drivers to allow connection to iSAMs schools system via MSSQL or XML

image

simonbowen/laravel-isams

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  • Tuesday, January 24, 2017
  • by simonbowen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

StyleCI , (*1)

laravel-isams

Package to integrate iSAMs data connections in laravel, (*2)

Intro

ISAMs an official and an unofficial interface to the underlying data in the system. The former a XML file that can be requested over HTTP, the latter a manual SQL connection to the iSAMS MSSSQL database., (*3)

This package aims to allow you to use either but maintain the same interface., (*4)

Setup

php artisan vendor:publish, (*5)

Config Example

<?php

return [
  'isams' => [
    'driver' => 'xml', // Set to db to use MSSQL connection,
    'xml' => [
      'url' => 'http://url/for/isams/xml',
      'cache' => null, // Set cache time for XML file (defaults to 60 minutes)
    ],
    'db' => [
      'connection' => 'sqlsrv', // Specify the database connection you wish to use from the database.php config file
    ]
  ]
];

Service Provider

Add SimonBowen\IsamsDrivers\IsamsDriversServiceProvider to your Service Providers configuration found in config/app.php, (*6)

Usage

This package currently provides three repositorys., (*7)

  • StaffRepository
  • PupilRepository
  • SetRepository

These can be injected via Laravels IOC, (*8)


use SimonBowen\IsamsDrivers\Repositories\Contracts\StaffRepository; class DemoController extends Controller { protected $repository; public function __construct(StaffRepository $repository) { $this->repository = $repository; } public function index() { $staff = $this->repository->all(); dd($staff); } }

Be sure to check out the interfaces located in SimonBowen\IsamsDrivers\Repositories\Contracts for more information on available methods., (*9)

The Versions

24/01 2017

dev-master

9999999-dev

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams

23/10 2016

dev-analysis-XpRDw6

dev-analysis-XpRDw6

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams

28/09 2016

dev-develop

dev-develop

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams

21/09 2015

v0.0.3

0.0.3.0

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams

21/09 2015

v0.0.2

0.0.2.0

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams

21/09 2015

v0.0.1

0.0.1.0

Drivers to allow connection to iSAMs schools system via MSSQL or XML

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Bowen

isams