Download the PHP package mostafaznv/php-x-sendfile without Composer

On this page you can find all versions of the php package mostafaznv/php-x-sendfile. 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 php-x-sendfile

PHP X-Sendfile

Serve large files using web server with support for laravel

Some features for X-Sendfile:


I develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect.
So if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺

Donate


Requirements:

Installation

Install using composer:

Laravel (Optional)

  1. Register Provider and Facade in config/app.php:

    Don't need for Laravel 5.5+

  2. Publish config file:

Usage

Laravel Usage

Note: to change configuration in laravel, open config/x-sendfile.php and set your own configurations.

Config:

Key Default Type Description
server null string with null value, package will detect server type automatically
supported: Nginx, Apache, LiteSpeed, Lighttpd
base-path $_SERVER['DOCUMENT_ROOT'] string defines base path of your project.
cache true boolean enable/disable for caching response
cache-control-max-age 2592000 integer set maximum age of cache

Methods

Download

Argument Index Argument Name Default Type Description
0 file string relative (related to project index.php file) or absolute file path
1 fileName null string user defined file name

setHeader

Argument Index Argument Name Default Example Type Description
0 headers ['Header-Name' => 'Header-Value')] array Key-Value array.
key is header name
value is header value

I develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect.
So if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺

Donate


Credit and Thanks

this package inspired by songlipeng2003's x-sendfile.

Changelog

Refer to the Changelog for a full history of the project.

License

This software released under Apache License Version 2.0.

(c) 2020 Mostafaznv, All rights reserved.


Sponsors

JetBrains Logo (Main) logo


All versions of php-x-sendfile with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.1
ext-fileinfo Version *
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 mostafaznv/php-x-sendfile contains the following files

Loading the files please wait ....