medinaproduction / laravel-toolkit
MedinaProduction Laravel Toolkit Package
1.0.2
2024-10-06 06:38 UTC
Requires
- php: ^8.1
- laravel/framework: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- fakerphp/faker: ^1.9
- mockery/mockery: ^1.4
- orchestra/testbench: ^7.13
- phpunit/phpunit: ^9.5
README
This package is designed to help with general tools in MedinaProduction Laravel projects.
Simple usage
To use this package, follow these steps:
- In your projects
composer.json
file, add the following:
"repositories": [
...
{
"type": "vcs",
"url": "git@gitlab.com:medinaproduction/laravel-toolkit.git"
}
]
- In the terminal for your project, write the following:
composer require medinaproduction/laravel-toolkit`
How to use (and develop)
To use this package and to continue developing the package, follow these steps:
- In your projects
composer.json
file, make sure you have the following:
composer require mnsami/composer-custom-directory-installer
- When question apperears: Do you trust "mnsami/composer-custom-directory-installer"... press
y
. - Add the following to the
composer.json
file.
"extra": {
...
"installer-paths": {
...
"./support/laravel-toolkit": ["medinaproduction/laravel-toolkit"],
}
},
- Also add the following to the
repositories
section:
"repositories": [
...
{
"type": "vcs",
"url": "git@gitlab.com:medinaproduction/laravel-toolkit.git"
}
]
- Finally, run the following command:
composer require medinaproduction/laravel-toolkit --prefer-source
- A new clone of the repository is created under
support/laravel-toolkit/...
.
Get tests to work
Note: This guide is for testing in a standalone folder. If you want to run tests within the support
folder, the process may be a bit different.
- Naviage to package in termianl
cd support/laravel-toolkit
- Make sure you have run
composer update
in your package folder - Run tests
./vendor/bin/phpunit