vormiaphp/vormia
Vormia is a lightweight PHP/Laravel package offering a simple foundation for building apps with clean structure and reusable components. It focuses on straightforward setup and developer-friendly conventions for organizing code and speeding up common tasks.
vormia:migrate-api-routes — focused production command to clear route/config caches, enable VORMIA_REGISTER_API_ROUTES, remove duplicate /api/v1 Vormia auth routes from the host routes/api.php, and update the Postman collection after upgrading/api/v1/* to /api/vrm/* so all Vormia API routes share one prefix and no longer conflict with host-app /api/v1 versioningMediaForge::url($pathOrUrl, $disk = null) now returns a builder that can generate:
->public()->private() (prefers temporaryUrl() when supported)->seconds(), ->minutes(), ->hours(), ->days(), ->years(), and ->expiresAt(...)VORMIA_MEDIAFORGE_PREVIEW_PERIOD (seconds)
86400 (24h)VORMIA_MEDIAFORGE_PREVIEW_PERIOD=): defaults to 3600 (1h)MediaForge::upload(...)->run() and MediaForge::uploadFile(...)->run() now return a storage path/key by default (instead of sometimes returning a URL).vormia:install): now includes
VORMIA_MEDIAFORGE_STORAGE_RULE=vormiaVORMIA_MEDIAFORGE_PREVIEW_PERIOD=86400MediaForge::previewUrl(...) remains as a compatibility wrapper, implemented via the URL builder.uploadFile() for uploading raw files (PDFs, docs, zips, etc.) without image processingupload() with an isFile() flag to treat uploads as raw files and skip image operationsMediaForge::url($urlOrPath, $disk = null) to normalize a MediaForge run() return value (URL-or-path) into a usable URL when possibleMediaForge::previewUrl($urlOrPath, $disk = null, $expiresAt = null, array $options = []) to generate previewable URLs, including signed temporary URLs when supported by the diskVORMIA_MEDIAFORGE_PREVIEW_MODE=proxy, Vormia exposes GET /api/vrm/media/preview?disk=...&path=... to stream files for previewing from disks that don’t support url()/temporaryUrl() reliablyVORMIA_MEDIAFORGE_URL_PASSTHROUGH controls whether MediaForge::url() returns existing http(s)/data: inputs unchangedYYYY/MM/DD folder structure via useDateFolders()v5.1.3 with improved two-factor migration guidancebootstrap/app.php and bootstrap/providers.phpVORMIA_* from .env and .env.exampleresources/css/app.css and resources/js/app.jsvrm_*)optimize:clear--force to skip confirmation promptsrc/stubs/ directory from Composer autoloadingApp\ namespaces meant for Laravel applicationsClass src\stubs\Controllers\... does not comply with psr-4 autoloading standardexclude-from-classmap to composer.json autoload section
database/seeders during package installation and updatesvormia:install commandvormia:update command#5a85b9)keepAspectRatio parameter: Control whether thumbnails maintain aspect ratio or use exact dimensionsfromOriginal parameter: Choose to generate thumbnails from original uploaded image or processed imagefillColor parameter: Fill empty areas with background color when aspect ratio is maintainedVORMIA_MEDIAFORGE_THUMBNAIL_KEEP_ASPECT_RATIO (default: true)VORMIA_MEDIAFORGE_THUMBNAIL_FROM_ORIGINAL (default: false){baseName}-{width}-{height}.{extension}{baseName}-{width}-{height}-{format}.{format}{baseName}_{suffix}.{extension}override=falsefromOriginal parameter to correctly use original uploaded file instead of processed imageApiAuthenticate middleware with 'api-auth' alias for protected API routesclearCache(), fresh() methods to UtilityService for better performancesetMeta/getMeta methods across User and Taxonomy models for consistencyUtilitiesServiceProvider, GlobalDataServiceProvider, and TokenServiceProvider with database connection checksInstallCommand to include new middleware aliases automaticallysetMeta/setMetaValue methodsMediaForgeDependencyTest and InstallationTestWhen adding new entries to this changelog, please follow the established format and include:
How can I help you explore Laravel packages today?