uaproger/aprog

Бібліотека для роботи з властивостями

1.8.5 2025-09-05 07:51 UTC

This package is auto-updated.

Last update: 2025-09-05 07:51:51 UTC


README

Допоміжна бібліотека Laravel для створення Properties і не тільки це...

require for dev

Packagist resource

https://packagist.org/packages/uaproger/aprog

Installation

Aprog requires PHP >= 8.1.

composer require uaproger/aprog --dev

Basic Usage

Property:

php artisan make:property <name>

Service:

php artisan make:service <name>

Config for Lang::translations():

php artisan vendor:publish --provider="Aprog\AprogServiceProvider" --tag=config

View for MailForDeveloper:

php artisan vendor:publish --provider="Aprog\AprogServiceProvider" --tag=views

Info

  • На цей час сервіс вже створює properties та services
  • Додано Сервіс накопичення помилок
  • Додано функції хелперів:
    • code_location() для отримання файлу та лінії
    • arr() для безпечного отримання значень з масиву, або об'єкта
    • object() формування об'єкта з масиву, або створення порожнього об'єкта
    • mail_for_developer() дозволяє формувати MailForDeveloper лист
    • mail_content_exception() формування контенту для тіла листа
    • guid()
    • blockLogError()
    • blockInfo()
    • blockExceptionError()
    • zerosArticle()
    • exception() функція для виклику класу SetAprog та методу exception, який своєю чергою викликає клас та метод які в нього передають
  • Додано клас MailForDeveloper - формує лист з помилкою для розробника
  • Додано модель, сідер та міграцію ErrorCodes
  • З часом будуть додаватися можливості створення додаткових інструментів

License

MIT License

Copyright (c) 2025 AlexProger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

© AlexProger 2025