Download the PHP package xgenious/installer without Composer
On this page you can find all versions of the php package xgenious/installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xgenious/installer
More information about xgenious/installer
Files in xgenious/installer
Package installer
Short Description Laravel script installer package
License BSD-2-Clause
Informations about the package installer
Xgenious Installer
A Laravel package for installing xgenious script easily with a visual installer
Installation
Require this package with composer:
Publish the configuration file::
Add Midleware in fle
\Xgenious\Installer\Http\Middleware\InstallerMiddleware::class
`
Config Value Explanation
Migrate from old Installer
remove install
folder, and remove install
folder redirection from the root index.php
file
Minimal .env
File Required
here is example of minimal .env
file.
Running Tests
To run the test suite for this package, follow these steps:
Ensure you have the package and its dependencies installed:
Copy the package's phpunit.xml.dist file to phpunit.xml:
Run the tests using PHPUnit:
Or, if you've set up the Composer script, you can use:
For a coverage report, run:
This will generate an HTML coverage report in the coverage directory.
Notes:
The tests use an in-memory SQLite database by default. If you need to use a different database for testing, update the phpunit.xml
file accordingly.
Some tests may require specific environment variables to be set. Check the phpunit.xml
file and set any necessary variables in your local environment or in the phpunit.xml
file.
If you encounter any issues running the tests, ensure that all dependencies are properly installed and that your PHP environment meets the package requirements.
Writing New Tests
When adding new features or fixing bugs, please add corresponding test cases. Place new test files in the tests
directory, following the existing structure:
Unit tests go in tests/Unit
Feature tests go in tests/Feature
Ensure that your test class extends
Xgenious\Installer\Tests\TestCase.
If you need to add new test dependencies, add them to the require-dev
section of the composer.json
file.
Usages
When the .env file is not found in your Laravel application, this package will automatically display the installation wizard.