spiral/distribution
Spiral Distribution helps install and publish Spiral framework distributions, bundling app skeletons, modules, and configs into reusable packages. It streamlines project bootstrapping, updates, and sharing standardized setups across teams.
This package is not for Laravel—it’s a niche, read-only CDN client for the Spiral Framework ecosystem. Since its repository is unknown (no Packagist/GitHub), you cannot install it via Composer in a Laravel project. To evaluate it (only possible in a Spiral app), locate the source code manually (e.g., via local ZIP, archived release, or internal mirror). Start by inspecting src/ for core classes like DistributionService or AssetPublisher, and check for a service provider (e.g., DistributionServiceProvider). A typical first use case is registering a CDN prefix for static assets—e.g., swapping /build/app.js → https://cdn.example.com/build/app.js—via a config file (e.g., config/distribution.php) containing keys like cdn_url, enabled, and paths.
vendor/bin/distribution build command).asset()) with a macro or directive that prepends CDN URLs when distribution.enabled is true.CDN_ENABLED=true in prod, false locally) and inject the setting into a middleware that prepends CDN URLs to responses.['assets/*.js']) to batch and prefix multiple assets—ideal for pre-bundled assets from Vite/Webpack.AppServiceProvider (e.g., $this->app->singleton(DistributionInterface::class, CdnDistribution::class)), then inject it into controllers/views.Cycle, Runner, Http pipeline) are incompatible.[READ ONLY], contributions/fixes are impossible—patch locally, fork, or vendor manually if needed.app.css?hash=abc), nested paths (/assets/vendor/react.js), and mixed HTTP/HTTPS.Cache-Control: max-age=31536000) or manual purges separately.public_path(), and multi-domain setups.How can I help you explore Laravel packages today?