Skip to content

Laravel package around 'AFAS-ProfitClass-PHP'

Notifications You must be signed in to change notification settings

webcodebg/laravel-afas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Afas

Build Status Latest Stable Version License Total Downloads

A module that integrates tomlankhorst/afas-profit with Laravel.

Requirements

  • PHP 7.2 +
  • Laravel 5.5, 5.7, 5.8 (5.6 is EOL)

Configuration

composer require tomlankhorst/laravel-afas ^1.0

Add an afas.php configuration file.

<?php

return [
    'connections' => [
        'default' => [
            'location' => env('AFAS_LOCATION'),
            'connectors' => [
                'products' => [
                    'id' => env('AFAS_PRODUCTS_CONNECTOR'),
                    'environment' => env('AFAS_ENVIRONMENT'),
                    'token' => env('AFAS_TOKEN'),
                ],
            ]
        ],
    ],
];

Usage

As a facade

$results = Afas::connector('products')
    ->where('sku', 'LIKE', 'XY%')
    ->orWhere('sku', 'LIKE', 'XXY%')
    ->take(10)
    ->skip(10)
    ->get();

Credits

Thanks to iPublications for developing iPublications/AFAS-ProfitClass-PHP.

About

Laravel package around 'AFAS-ProfitClass-PHP'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%