Download the PHP package javaabu/pgodb-sdk-laravel without Composer
On this page you can find all versions of the php package javaabu/pgodb-sdk-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download javaabu/pgodb-sdk-laravel
More information about javaabu/pgodb-sdk-laravel
Files in javaabu/pgodb-sdk-laravel
Package pgodb-sdk-laravel
Short Description pgodb-sdk-laravel
License MIT
Homepage https://github.com/javaabu/pgodb-sdk-laravel
Informations about the package pgodb-sdk-laravel
PGODB SDK Laravel
Laravel SDK for Prosecutor General's Office's Criminal Justice Sector database.
Installation
You can install the package via composer:
Setting up PGODB Credentials
Add your personal access token for the PGODB system as well as the base URL to your config/pgodb.php
:
Usage
Using the App container:
Using the Facade
Available Methods
This package serves as a thin wrapper around the PGODB SDK package.
Retrieve all Models
Retrieve by Id
We do not use database ids, but rather administrative identification strings such as an individual's national identity card number, passport number, registration number (for judges and lawyers), incident reference numbers, gaziyyah numbers and the like.
This is a wrapper for the filter
functionality built into this package.
An alternate way of doing this is as follows:
The search term would change depending on the model being retrieved. The find
function
abstracts this complexity away for the user.
Store Non-Nested Model
Store Nested Model
Update Non-Nested Model
Update Nested Model
Sorting
`
Ending Functions
The ending functions of each of these chained functions are defined as follows. The actual API request will be sent once these ending functions are called at the end of the chain.
get()
Should return a list of items,find($id)
Should return a single item,delete($id)
Sends a delete request and returns true or false,store($data)
Returns the newly stored record,update($data)
Returns the updated record.
Credits
- Ibrahim Hussain Shareef
- All Contributors
License
The MIT License (MIT). Please see License File for more information.