Download the PHP package robodocxs/laravel-erp-middleware without Composer

On this page you can find all versions of the php package robodocxs/laravel-erp-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-erp-middleware

Laravel ERP Middleware for Robodocxs

This package provides a middleware for ERP integration in Laravel applications, including basic DTOs, custom middleware for one-time basic authentication, custom exception handling, and additional capabilities for SFTP file system operations and CSV handling.

Installation

Only if you want to start from a new laravel project:

Install the package via composer:

After installation, you should publish the configuration file:

This will publish the robodocxs-erp-middleware.php configuration file to your config directory.

Then, install the api:

Use this example routes file:

To publish the built-in Controller as a starting point, use this command:

Configuration

If you need SFTP access, add the following disk to config/filesystems.php file directly:

Then add the following keys to your env to use the disk:

Features

API Routes and Middleware Controller

This package provides pre-defined API routes and a middleware controller to handle them. All routes are protected by the AuthenticateOnceWithBasicAuth middleware, which implements one-time basic authentication.

The following routes are available:

1. List Products

2. List Accounts

3. List Account Contacts

4. List Account Addresses

5. List Account Custom Products

6. List ERP Documents

7. Check Price and Availability

All these routes require authentication. The AuthenticateOnceWithBasicAuth middleware will prompt for credentials on the first request and then allow subsequent requests without re-authentication for a limited time.

Usage

DTOs

This package requires DTOs from robodocxs/robodocxs-middleware-dtos. They serve as the glue between the backend and the middlewares.

Custom Middleware

This package includes a middleware for one-time basic authentication. It's automatically applied to all API routes provided by this package. If you want to use it in your own routes, you can do so like this:

SFTP Operations

This package configures a new 'fileshare' disk for SFTP operations. After publishing and configuring the sftp.php config file, you can use it like this:

CSV Handling

This package includes the league/csv package for CSV operations. Here's a basic example of reading a CSV file:

For more detailed usage instructions for SFTP and CSV operations, please refer to the respective package documentation:

Deploying

When deploying to dev or prod servers, use these defaults for .env:

Testing

To run the package tests, use:

Development

To symlink this project in your local middleware for faster development, follow these steps:

  1. Add repository to composer.json

  2. Require dev-main and prefer source:

If you want to also symlink robodocxs/robodocxs-middleware-dtos in your project, you have to do it directly in that project. It is not possible to symlink it here and expect your project to pick it up from here.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The MIT License (MIT).


All versions of laravel-erp-middleware with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
league/csv Version ^9.0
league/flysystem-sftp-v3 Version ^3.28
robodocxs/robodocxs-middleware-dtos Version ^1.0
spatie/laravel-data Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package robodocxs/laravel-erp-middleware contains the following files

Loading the files please wait ....