spkm / isams
A PHP wrapper for using iSAMS public REST API
Installs: 2 342
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: ^8.2
- ext-json: *
- guzzlehttp/guzzle: ~6||~7
- illuminate/http: ~10||~11
- illuminate/support: ~10||~11
- intervention/image: ^2.7
- laravel/pint: ^1.16
Requires (Dev)
- phpunit/phpunit: ^10.0
Suggests
- laravel/framework: The Laravel Framework.
- dev-master
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.21
- v4.0.20
- v4.0.19
- v4.0.18
- v4.0.17
- v4.0.16
- v4.0.15
- v4.0.14
- v4.0.13
- v4.0.12
- v4.0.11
- v4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- 3.0.0
- v2.4.16
- v2.4.15
- v2.4.14
- v2.4.13
- v2.4.12
- v2.4.11
- v2.4.10
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.18
- v2.3.17
- v2.3.16
- v2.3.15
- v2.3.14
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.10
- v2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.1
- 2.0.0
- 1.9
- 1.8
- 1.7
- 1.6
- 1.5
- 1.4
- 1.3
- 1.2
- 1.1
- 1.0
- dev-develop
- dev-feature/pupiltimetable
This package is auto-updated.
Last update: 2024-10-30 15:17:33 UTC
README
This package is a PHP wrapper for iSAMS (https://isams.com) using their REST API. It transforms the json objects returned from the API into model instances.
See https://developerdemo.isams.cloud/Main/swagger/ui/index for their API documentation & https://developer.isams.com/display/PRA/Getting+started+-+REST+API
Installation and usage
This package requires PHP 8.1 & Laravel 9.0 or higher. See the tests/
folder for documentation. (We'd quite like someone to write some proper documentation)
Basic Installation:
You can install this package via composer using:
composer require spkm/isams
The package will automatically register its service provider
To publish the config file to config/isams.php
run:
php artisan vendor:publish --provider="spkm\isams\IsamsServiceProvider"
Update the config file & add the REST API secret(s) to your .env file
If you are using a School model, implement the interface \spkm\isams\Contracts\Institution
:
<?php namespace App; use Illuminate\Database\Eloquent\Model; class School extends Model implements \spkm\isams\Contracts\Institution { /** * Define the name used to identify this Schools entry in the config */ public function getConfigName(): string { return 'cranleighSandbox'; } }
In your config/isams.php
file, add the following to the schools
array:
'cranleighSandbox' => [ 'api_key' => env('ISAMS_API_KEY'), 'api_secret' => env('ISAMS_API_SECRET'), 'api_url' => env('ISAMS_API_URL'), ],
Otherwise implement the interface on your custom class (or copy the example spkm\isams\School
)
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email spkm@cranleigh.org instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.