lastdragon-ru/lara-asp

The Awesome Set of Packages for Laravel.

7.0.0 2024-11-17 07:55 UTC

README

The set provides best practices to make development more fun and classes/services that I found very useful while working on big extensible applications.

Requirements

Installation

Installation of the root lastdragon-ru/lara-asp package is not recommended because it will install all packages, but some of them are intended to use while dev only (and may want dependencies like phpunit/phpstan/etc). So select the desired package and install it. You can find requirements and installation instructions (if any) inside package documentation.

# General case (where "<package>" the package name).
composer require lastdragon-ru/lara-asp-<package>

Packages

(Laravel) Core

This package contains useful utilities and classes.

Read more.

(Laravel) Documentator

This package provides various utilities for documentation generation such as Markdown Preprocessor, Requirements Dumper and more.

Read more.

(Laravel) Eloquent Helpers

This package contains useful extensions and mixins for Eloquent.

Read more.

(Laravel) GraphQL Extensions for Lighthouse

This package provides highly powerful @searchBy, @sortBy, @stream directives for lighthouse-php. The @searchBy directive provides basic conditions like =, >, <, etc, relations, not (<condition>), enums, and custom operators support. All are strictly typed so you no need to use Mixed type anymore. The @sortBy is not only about standard sorting by columns but also allows use relations. 😎

Read more.

(Laravel) Intl Formatter

This package provides a customizable wrapper around Intl formatters to use it inside Laravel application. And also allows defining own.

Read more.

(Laravel) Raw SQL Migrator/Seeder

This package improves standard Laravel migrations to add support for raw SQL files during migration and seeding. So you can easily use your favorite visual tool for database development like MySQL Workbench with Laravel 🥳

Read more.

(Laravel) SPA Helpers

Read more.

(Laravel) Symfony Serializer

This package provides a customizable wrapper around the Symfony Serializer Component to use it inside Laravel application.

Read more.

(Laravel) Testing Helpers 🐝

This package provides various useful asserts for PHPUnit and better solution for HTTP tests - testing HTTP response has never been so easy! And this not only about TestResponse but any PSR response 😎

Read more.

Dev 🐝

Various internal tools and helpers to develop the package itself.

Read more.

GraphQL Printer

Independent (from Laravel and Lighthouse) package that allow you to print GraphQL Schema and Queries in highly customized way eg you can choose indent size, print only used/wanted/all types, print only one type, print used/wanted/all directives (it is not possible with standard printer) and even check which types/directives are used in the Schema/Query.

Read more.

Upgrading

Please follow Upgrade Guide.

Development

  1. Fork & clone
  2. docker compose up
  3. ...
  4. Enjoy

Legend