Download the PHP package hughcube/laravel-alioss without Composer

On this page you can find all versions of the php package hughcube/laravel-alioss. 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-alioss

Laravel AliOSS

Test Actions status StyleCI Latest Stable Version License

Alibaba Cloud OSS adapter for Laravel, based on alibabacloud/oss-v2.

Requirements

Installation

ServiceProvider auto-discovery is enabled. No manual registration needed.

Configuration

Add a disk to config/filesystems.php:

Quick Start

Flysystem Operations

Standard FilesystemAdapter interface:

Extended operations:

URL Operations

All URL methods return OssUrl instances (extends HUrl, supports __toString).

Build URLs

Signed URLs

Domain Detection

Domain Conversion

Parse URL

OssUrl

OssUrl extends HUrl with OSS-specific capabilities. All methods are immutable (return new instances).

Domain Operations

Signing

Process parameters are included in the signature automatically:

Image Processing

Operations chain automatically. image/ prefix appears only once in the output.

Method Description
imageResize($w, $h, $mode) Scale. Modes: lfit, mfit, fill, pad, fixed
imageResizeByPercent($pct) Scale by percentage [1, 1000]
imageCrop($w, $h, $gravity, $x, $y) Crop. Gravity: nw, north, ne, west, center, east, sw, south, se
imageRotate($angle) Rotate [0, 360]
imageFlip($dir) Flip: h, v, both
imageFormat($fmt) Convert: jpg, png, webp, bmp, gif, tiff, heic, avif
imageQuality($q, $abs) Quality [1, 100]. $abs=true for absolute
imageBlur($r, $s) Blur. radius/sigma [1, 50]
imageBright($val) Brightness [-100, 100]
imageContrast($val) Contrast [-100, 100]
imageSharpen($val) Sharpen [50, 399]
imageCircle($r) Circle crop, radius [1, 4096]
imageRoundedCorners($r) Rounded corners [1, 4096]
imageAutoOrient() Auto-rotate by EXIF
imageInterlace() Progressive display (JPG only)
imageIndexCrop($size, $idx, $axis) Indexed slice
imageWatermarkText($text, ...) Text watermark
imageWatermarkImage($path, ...) Image watermark
imageInfo() Image metadata (JSON)
imageAverageHue() Dominant color

Remove operations: imageRemoveResize(), imageRemoveRotate(), imageRemoveWatermark(), etc.

Video Processing

Audio Processing

Document Processing

Generic Process

Validation Rule

OssFile validates that a URL points to a valid OSS file.

Constraints

Domain: cdnDomain(), uploadDomain(), ossDomain(), anyDomain()

File type: image(), video(), audio(), media(), document(), pdf(), word(), excel(), ppt(), archive(), text(), json(), xml(), mimeTypes([...])

Size: minSize($bytes), maxSize($bytes), sizeBetween($min, $max)

Image dimensions: maxWidth($px), maxHeight($px), aspectRatio($w, $h), minAspectRatio($w, $h), maxAspectRatio($w, $h)

Path: extensions([...]), exceptExtensions([...]), directory($dir), directories([...]), exceptDirectory($dir), filenameMaxLength($len)

Behavior: domainOnly(), checkExists(false)

Query After Validation

License

MIT


All versions of laravel-alioss with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/filesystem Version *
league/flysystem Version *
alibabacloud/oss-v2 Version ^0.4
hughcube/purl Version *
hughcube/guzzle-http 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 hughcube/laravel-alioss contains the following files

Loading the files please wait ...