Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/movemoveapp/laravel-postmangen
Generation of Postman collection JSON file based on performed HTTP requests during execution of PHPUnit runner
https://github.com/movemoveapp/laravel-postmangen
Last synced: 7 days ago
JSON representation
Generation of Postman collection JSON file based on performed HTTP requests during execution of PHPUnit runner
- Host: GitHub
- URL: https://github.com/movemoveapp/laravel-postmangen
- Owner: movemoveapp
- License: mit
- Created: 2023-05-16T13:14:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-27T10:48:02.000Z (12 months ago)
- Last Synced: 2024-11-16T17:45:31.404Z (about 1 month ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[//]: # ([![Build Status](https://app.travis-ci.com/movemoveapp/laravel-dadata.svg?branch=master)](https://app.travis-ci.com/movemoveapp/laravel-dadata))
[//]: # ([![Latest Stable Version](https://poser.pugx.org/movemoveapp/laravel-dadata/v)](//packagist.org/packages/movemoveapp/laravel-dadata))
[//]: # ([![Total Downloads](https://poser.pugx.org/movemoveapp/laravel-dadata/downloads)](//packagist.org/packages/movemoveapp/laravel-dadata))
[//]: # ([![License](https://poser.pugx.org/movemoveapp/laravel-dadata/license)](//packagist.org/packages/movemoveapp/laravel-dadata))
*Laravel Postmangen Package* - [Laravel](https://github.com/laravel/laravel) пакет генерации Postman коллекции запросов в формате JSON файла на основе запросов, выполняемых во время PHPUnit тестов.
## Установка
Вы можете установить пакет через composer:```shell script
composer require movemoveapp/laravel-postmangen
```Публикация конфигурационного файла. Выполните `artisan` команду
```shell script
php artisan vendor:publish --provider="MoveMoveIo\Postmangen\PostmangenServiceProvider"
```Настройка проекта осществляется через файлы `.env` и `phpunit.xml` вашего проекта. Необходимо указать `POSTMANGEN_TMP` - путь для генерации промежуточных файлов относительно корня проекта:
```shell
POSTMANGEN_TMP=postman/
```
A также добавить секцию `` в `phpunit.xml`:
```xml...
...```
И, наконец, необходимо добавить `PostmangenMiddleware` класс самым первым в список `middleware` (`app/Http/Kernel.php`):
```injectablephp
.postman_collection.json`.