Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Aliyun Oss Appserver

Aliyun Oss Appserver Laravel Package

alphasnow/aliyun-oss-appserver

Laravel package for Aliyun OSS direct uploads: it generates the upload policy and signature that web and mobile clients use to post files straight to OSS, keeping access keys server-side and taking upload bandwidth off your application.

View on GitHub
Deep Wiki
Context7

Aliyun oss signature direct transmission. 阿里云服务端签名直传OSS扩展包.

Frequently asked questions about Aliyun Oss Appserver
How do I install alphasnow/aliyun-oss-appserver in a Laravel application?
Install it with Composer using composer require alphasnow/aliyun-oss-appserver, then let Laravel package discovery register the service provider. Publish the package config file if the README instructs it, and add your OSS bucket, endpoint, AccessKey ID and secret to your .env file. Finally, expose a small controller endpoint that returns the generated policy and signature to your web or mobile client. Check the repository README for the exact publish command and config key names, since those are package-specific.
Which Laravel and PHP versions does this Aliyun OSS signature package support?
The supported range is defined by the require constraints in the package's composer.json, so check that file rather than assuming. It is a lightweight signing utility with no queue, database or framework patching, which keeps the compatibility surface small. Confirm the constraints against your own PHP and Laravel matrix, and confirm the transitive Aliyun OSS SDK dependency has not jumped a major version. If you are on an older Laravel release, verify compatibility before adding it to a shared codebase.
How does server-side signature direct upload to Aliyun OSS actually work?
Your Laravel app calls the package to build an upload policy and signature, then returns that short-lived data to the browser or mobile client. The client posts the file as a multipart form directly to your OSS bucket using those values, so the file bytes never pass through PHP. This keeps AccessKeys server-side, cuts egress and memory pressure on the application tier, and reduces the signing endpoint to a cheap CPU operation. The package handles signing only; your application still owns the HTTP endpoint and any authorization in front of it.
Where should I keep OSS AccessKey credentials when using this package?
Store them in environment variables referenced from config, never in committed files or client-side code, and let config:cache handle production deployment. The package reads credentials from configuration, so the real risk is secret sprawl across .env files, CI variables and deployment tooling rather than the library itself. Prefer STS temporary credentials over long-lived AccessKeys on any client-facing path. Also verify that missing or malformed credentials fail loudly instead of producing a silently permissive policy.
Does alphasnow/aliyun-oss-appserver support STS temporary credentials?
The package overview focuses on server-side signing with OSS AccessKey credentials and does not state STS support explicitly, so confirm it in the README or source before relying on it. STS is strongly preferred for client upload paths because temporary credentials expire and can be scoped to a prefix. If STS is not supported out of the box, you can still issue tightly scoped policies with short expirations, or wrap the official Aliyun OSS PHP SDK in your own signing service.
Does this package use OSS V1 or V4 signatures?
That detail is not clear from the package description, and it matters because Alibaba Cloud has been steadily steering consumers toward V4 signing. If the package pins V1 behaviour, treat that as a latent migration item rather than an immediate blocker. Inspect the signing code or test a generated policy against a non-production bucket to see which signature version OSS accepts before you commit.
Is upgrading from 1.0.0 to 1.1.0 safe for production?
Release 1.1.0 ships without release notes beyond an auto-generated compare link, so the delta is undocumented at summary level. A minor bump implies additive, backwards-compatible changes under semver, but that is an inference from version numbering, not a verified fact. Read the GitHub compare diff and the composer.json constraint changes first, pin the new version in a branch, run composer update with dependencies, then run your tests plus a signing smoke test against a non-production bucket. Rebuild config:cache afterwards, since new optional config keys are a common cause of post-deploy failures.
Can I use OSS upload callbacks to verify files uploaded directly from the client?
Callback parameters are part of OSS upload policy and signature semantics, so check the package config for whether callback URL, body and body type can be included in the generated policy. If they are supported, OSS calls your endpoint after a successful upload so your server can verify and persist the object metadata. If not, you can add callback fields yourself where the policy is assembled or validate uploads out of band. Either way, never trust client-reported upload results without a server-side check.
How should I test OSS signature generation before going to production?
Wrap the package behind your own adapter such as an UploadSignatureService and unit test that adapter rather than the vendor namespace. For integration, generate a policy in a staging environment, POST a small file to a non-production OSS bucket, and assert the round trip succeeds and the policy is accepted. Also test the failure paths: absent credentials, wrong bucket and expired policy. Whether the package ships its own test suite and CI is unclear, so plan to own that coverage yourself.
What happens if this package is abandoned, and what are the alternatives?
The maintainer's activity and bus factor are not documented in the overview, so check commit history and issue response times before adopting. Because the integration surface is shallow, a thin application-owned adapter makes a swap an afternoon of work instead of a refactor. Alternatives include calling the official Aliyun OSS PHP SDK directly from a small signing service, or using another Laravel OSS package that generates upload policies. For most teams the adapter decision matters more than the package choice.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons