sdtech/project-installer

Simple Laravel web installer with codecanyon product validation

v1.0.3 2022-09-02 09:41 UTC

This package is auto-updated.

Last update: 2024-11-30 01:54:00 UTC


README

Latest Version Issues Stars Stars Total Downloads

About

A simple laravel project installer with verify envato product licence which gives you a nice interface to setup your project, verify product, database and other configuration just by following the setup wizard. The current features are :

  • Check For Server Requirements.
  • Check For Folders Permissions.
  • Verify Envato purchase licence.
  • Ability to set database information with a simple form wizard.
  • Migrate The Database.
  • Seed The Tables.

Requirements

Installation

  1. From your projects root folder in terminal run:
    composer require sdtech/project-installer
  1. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
    php artisan vendor:publish --tag=projectinstaller

configuration

  1. Go to your config folder, then open "installer.php" file
  2. Search here "env_path", under this change the "env_token" => 'change this value and set it your codecanyon token' .
'env_path' => [
  'env_token' => 'your envato token here',
  'env_url_path' => 'https://api.envato.com/v1/market/private/user/verify-purchase:'
  ]
  1. Another thing , verify purchase key is not mandatory, you can also manage this from config file->
'checkPurchaseCode' => true, 

[true means verify purchase key mandatory, and false means not mandatory]

Uses

  1. Make a middleware and inside the middleware the code look like ->
public function handle(Request $request, Closure $next)
    {
        if (file_exists(storage_path('installed'))) {
            return $next($request);
        }

        return redirect(url('install'));
    }
  1. Then add the middleware name to your route.

That's it :-)