Download the PHP package arshad1114/laravel-dms-disk-server without Composer

On this page you can find all versions of the php package arshad1114/laravel-dms-disk-server. 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-dms-disk-server

Laravel DMS Disk Server

Latest Version on Packagist Total Downloads License

Laravel server-side receiver package for arshad1114/laravel-dms-disk.

Install this package in your DMS Laravel service. It exposes a standardized HTTP API so any consumer service using arshad1114/laravel-dms-disk can store, retrieve and manage files on this service using the native Storage facade — no custom HTTP code needed on either side.

How it works

Requirements

Installation

The DmsServerServiceProvider is auto-discovered. All routes, middleware and controller are registered automatically.

Publish the config:

Configuration

Add to your DMS service .env:

Set your storage disk as you normally would in any Laravel app:

The package uses whatever disk you configure here — local, S3, GCS, or any other Laravel-supported driver. It has zero opinion about where files are stored.

Full config reference

All options in config/dms-disk-server.php:

Key Env variable Default Description
token DMS_SERVER_TOKEN '' Bearer token consumers must send
max_file_size_kb DMS_SERVER_MAX_FILE_SIZE_KB 102400 Max upload size in KB (default 100 MB)
route_prefix DMS_SERVER_ROUTE_PREFIX 'dms-disk' URL prefix for all endpoints

API endpoints

All endpoints are protected by bearer token authentication.

Method Endpoint Description
POST /dms-disk/upload Upload a file
GET /dms-disk/file Download a file
DELETE /dms-disk/file Delete a file
GET /dms-disk/exists Check if a file exists
GET /dms-disk/url Get public URL
GET /dms-disk/temp-url Get temporary signed URL
POST /dms-disk/move Move or rename a file
GET /dms-disk/list List files in a directory
GET /dms-disk/metadata Get file metadata
POST /dms-disk/visibility Set file visibility

Authentication

Every request must include the token as a bearer token:

Or as a custom header:

Verify installation

After installing, verify all routes are registered:

You should see all 10 endpoints listed.

Troubleshooting

401 Unauthorized

DMS_SERVER_TOKEN in the DMS service does not match DMS_TOKEN in the consumer service. Make sure both values are identical.

500 DMS_SERVER_TOKEN is not set

DMS_SERVER_TOKEN is missing from .env. Add it:

Routes not showing up

If still missing, check the provider is registered:

Consumer package

Install this on every service that needs to store files on this DMS:

arshad1114/laravel-dms-disk

Contributing

Contributions are welcome. Please:

  1. Fork the repo
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Write tests for your change
  4. Make sure all tests pass: ./vendor/bin/phpunit
  5. Open a pull request

License

MIT — see LICENSE file.


All versions of laravel-dms-disk-server with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.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 arshad1114/laravel-dms-disk-server contains the following files

Loading the files please wait ...