Official website of Russian L.O.R.D. server for Minetest
git clone git@gitlab.com:ava-it-group/investments/web-application.git
.env
:
cd web-application
cp .env.example .env
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php83-composer:latest \
composer install --ignore-platform-reqs
vendor/bin/sail up -d
vendor/bin/sail artisan key:generate
vendor/bin/sail npm install
vendor/bin/sail npm run build
vendor/bin/sail up
- to see the logsvendor/bin/sail up -d
- to execute in backgroundvendor/bin/sail down
- to stop them
./vendor/bin/sail npm install
./vendor/bin/sail npm run build
vendor/bin/sail npm run dev
For quick start use ./dev
command instead.
We use PHP-CS-Fixer for control Code Style.
Package php-cs-fixer
installed locally in the project, so you can check style with:
vendor/bin/php-cs-fixer check --diff
- for just check./vendor/bin/php-cs-fixer fix
- if you trust this tool :)vendor/bin/sail php vendor/bin/php-cs-fixer check --diff
vendor/bin/sail php vendor/bin/php-cs-fixer fix
For more use --help
& documentation.
You can enable support for your IDE. It will alert you to problems on the fly.
We use PHPStan for code quality control.
Package phpstan
installed locally in the project, so just:
vendor/bin/phpstan analyse
orvendor/bin/sail php vendor/bin/phpstan analyse
Also see the Documentation.
Config for all developers we store in phpstan.neon.dist
. Also, it's used in CI.
If you want to add some your own settings (for ex. for your IDE), create phpstan.neon
with similar lines:
includes:
- phpstan.neon.dist
parameters:
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
See examples in docs: Output Format.
Also look at helpful extensions.
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.