Download the PHP package siddharthgor/update-file-generator without Composer
On this page you can find all versions of the php package siddharthgor/update-file-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download siddharthgor/update-file-generator
More information about siddharthgor/update-file-generator
Files in siddharthgor/update-file-generator
Package update-file-generator
Short Description Laravel package for generating fresh install and date-based update packages
License MIT
Homepage https://github.com/siddharthgorinfinitie/update-file-generator
Informations about the package update-file-generator
Update File Generator
A Laravel package for generating fresh install and update packages for a Laravel application.
The package provides two Artisan commands:
app:make-fresh– Generates a fresh install SQL file (install.sql) and renames a view file toinstall.blade.php.app:make-update– Creates an update zip package with files, migrations, and archives based on a date range or configuration.
✨ Features
Fresh Install
- Truncates specified tables (e.g.,
projects,tasks) while handling foreign key constraints. - Exports the database schema to
install.sqlin the project root. - Renames
resources/views/setup.blade.php→resources/views/install.blade.php.
Update Package
- Generates a zip file (e.g.,
update_from_v2.0.1_to_2.0.2.zip) with:- Metadata files (
package.json,updater.json,files.json,archives.json,folders.json,query.sql,rollback.sql). - Files and archives under
update-files/(e.g.,Controllers.zip,config/scribe.php).
- Metadata files (
- Includes:
- Configured
archiveable_dirsandsingle_files. - Git-changed files (e.g., migrations).
- Configured
- Supports:
- Exclusions
- File extensions
- Advanced options (
--include-uncommitted,--dry-run,--rollback).
⚙️ Requirements
- PHP: ^8.0
- Laravel: ^9.0 | ^10.0 | ^11.0
- Dependencies:
illuminate/support,symfony/process - MySQL & mysqldump (for
app:make-fresh) - Git (for
app:make-update)
📦 Installation
1. Install the Package
`
2. Publish the Configuration
This creates config/update-file-generator.php.
3. Configure Logging
Add to config/logging.php:
4. Ensure Dependencies
MySQL and mysqldump
-
Verify installation:
- Add
mysqldump.exeto PATH (Windows example:C:\xampp\mysql\bin\mysqldump.exe).
Git
- Verify installation:
5. Verify Database Connection
Update .env:
6. Set Permissions (Windows)
🔧 Configuration
Edit config/update-file-generator.php:
🚀 Usage
1. app:make-fresh
Generates install.sql and renames setup.blade.php → install.blade.php.
Actions:
- Copies
setup.blade.php→install.blade.php - Truncates
projects,tasks - Exports schema via
mysqldump - Resets
.envto generic settings
Example Output:
Custom output:
2. app:make-update
Generates an update zip (e.g., update_from_v2.0.1_to_2.0.2.zip).
Options:
--from-date,--to-date→ Git change range--output→ Custom zip name--include-uncommitted→ Add uncommitted changes--dry-run→ Simulate only--rollback→ Generate rollback package
Zip Structure:
Verify:
🛠 Troubleshooting
app:make-fresh
-
mysqldump Not Found Add MySQL bin folder to PATH. Verify:
-
Foreign Key Constraint Error Add dependent tables to
truncate_tables. -
Missing
setup.blade.phpEnsure file exists or updateMakeFreshCommand.php. - Empty install.sql
Check
storage/logs/update-file-generator.log.
app:make-update
-
No Files Included Verify Git history:
-
Incorrect Zip Structure Ensure metadata files are at root, others under
update-files/. - UpdaterController Issues
Verify expected paths and check
storage/logs/update.log.
📑 Logs
- Location:
storage/logs/update-file-generator.log - Example:
🤝 Contributing
- Submit issues or PRs to the GitHub repository.
- Contact: Siddharth Gor ([email protected])
📜 License
MIT License
All versions of update-file-generator with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
symfony/process Version ^7.0|^8.0