Git Product home page Git Product logo

laravel-afas's Introduction

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.

laravel-afas's People

Contributors

tomlankhorst avatar

Watchers

 avatar  avatar

laravel-afas's Issues

Not able to use with Laravel 6

Hi @tomlankhorst

I have been trying to install the package for AFAS but i guess that has issue for Laravel version . I am using Laravel version 6.20.44

It would be good if you can let me know which version would be compatible with mentioned laravel version.

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.