joynala / web-installer
This is a laravel web installer and builder
Installs: 1 449
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 8
Open Issues: 1
Language:Blade
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Welcome to Web Installer, a Laravel package designed to make setting up your app fun and easy. Imagine setting up your app as quickly as a spaceship launch. That's what we offer – a quick and enjoyable setup process. Get ready for a smooth ride.
📋 System Requirements
- Laravel: Version 10.x
- PHP: Version 8.2 or more
- API: Internet access for checking Envato purchases
🌈 Features
- 🚀 Quick Setup: Get your app running super fast.
- 🎨 Fully Customizable: Change it up to make it fully yours.
- ✨ Easy-to-use UI: A user interface so easy, you'll get it right away.
- 🔐 Envato Purchase Check: Stops unauthorized use by checking purchases.
- 🕵️♂️ No Nulled Versions: Keeps your code safe from being used without permission.
- 🛠️ Perfect for Developers: Make changes to fit your needs.
- ⚙️ Simple Configuration: Setting things up is super easy.
🚀 Getting Started
Prerequisites
Make sure you have Laravel version 10.x or newer.
Installation
- Add the package using Composer:
composer require joynala/web-installer
- Publish the package's resources:
php artisan vendor:publish --tag=web-installer-config
- In your
AppServiceProvider
, in theboot
method, add:
if(!$this->app->runningInConsole()){ if (!file_exists(base_path('storage/installed')) && !request()->is('install') && !request()->is('install/*')) { header("Location: install"); exit; } }
🛡️ Envato Purchase Check
Keep your app safe from unauthorized use by turning on Envato purchase checks.
Configuration
Find these settings in config/installer.php
:
'product' => '', // Your product's name. 'verify_code' => '', // A secret code. 'verify_purchase' => true, // Turn on purchase checks. 'verify_rules' => [ // Rules for checking. ]
🎭 Keeping Your Code Safe
After checking:
- Use
php artisan make:json your file directory
to create a JSON file. - Store this file on your secure server.
- Give users access and directions after they pass the check:
- the response for 200 status
[ 'permission' => true, 'restore' => [ [ 'dir' => 'e.g., routes/web.php', 'source_code' => file_get_contents('path/to/your/json'), ], ] ]
- the response for 422 status
[ 'permission' => false, 'message' => 'You provide a wrong purchase code.' ]
🌟 Contributing
Anyone can help make this project better. Fork the project, make your changes, and send us a pull request. Found a problem? Tell us here.
👥 Contributors
Thanks to these wonderful people:
📜 License
This project is under the MIT license.
Reach the Creator
- Facebook: Joynal Abedin
- Email: abedin.dev@gmail.com
- LinkedIn: Joynal Abedin