PHPackages                             opctim/bruno-lang - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. opctim/bruno-lang

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

opctim/bruno-lang
=================

Framework-agnostic, bidirectional implementation of the Bruno (usebruno.com) .bru file language. Can be used to generate and parse from and to Bruno collections / request files.

1.2.0(1y ago)01.8k1MITPHPPHP &gt;=8.1

Since Feb 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/opctim/bruno-lang)[ Packagist](https://packagist.org/packages/opctim/bruno-lang)[ RSS](/packages/opctim-bruno-lang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (1)

opctim/bruno-lang
=================

[](#opctimbruno-lang)

[![Latest Stable Version](https://camo.githubusercontent.com/a57fa8356aa3d6dc6de11407c3ce4e6d79ae0bd1a52fbd4118fdb626d5c66c9c/68747470733a2f2f706f7365722e707567782e6f72672f6f706374696d2f6272756e6f2d6c616e672f76)](https://packagist.org/packages/opctim/bruno-lang) [![Total Downloads](https://camo.githubusercontent.com/57274d88497c7e7c2e966ae8eb1ba154ef6c41ab5d76913e363550b7b1589f02/68747470733a2f2f706f7365722e707567782e6f72672f6f706374696d2f6272756e6f2d6c616e672f646f776e6c6f616473)](https://packagist.org/packages/opctim/bruno-lang) [![Latest Unstable Version](https://camo.githubusercontent.com/253384248b16c77204a856c416a768577271717db72f6fe9841cda97e9dc197d/68747470733a2f2f706f7365722e707567782e6f72672f6f706374696d2f6272756e6f2d6c616e672f762f756e737461626c65)](https://packagist.org/packages/opctim/bruno-lang) [![License](https://camo.githubusercontent.com/aaead54dee969e399a943d638cbd3a33d98a80cacd3b8191475bc4ddf83b0f1b/68747470733a2f2f706f7365722e707567782e6f72672f6f706374696d2f6272756e6f2d6c616e672f6c6963656e7365)](https://packagist.org/packages/opctim/bruno-lang) [![PHP Version Require](https://camo.githubusercontent.com/c03738bdefa6de91d718e9a9949e997d287d1988962d40ff0f59a4acf27728b0/68747470733a2f2f706f7365722e707567782e6f72672f6f706374696d2f6272756e6f2d6c616e672f726571756972652f706870)](https://packagist.org/packages/opctim/bruno-lang)

This package is a framework-agnostic, bidirectional implementation of the Bruno (.bru) file language from [usebruno.com](https://usebruno.com). It allows you to generate, parse, modify, and rebuild Bruno request collections programmatically or from existing .bru files. The primary use case is to create a collection in PHP and write it to disk, but it also supports reading and modifying existing collections seamlessly.

Features
--------

[](#features)

- Parsing of bruno collections (just give it the path to the collection)
- Interface to programmatically create bruno collections
- Functionality to generate .bru files with the required metadata and write collections to disk

What do I need this for?
------------------------

[](#what-do-i-need-this-for)

The main purpose of this library is to enable developers to create dev-tools for their frameworks which are capable of generating Bruno collections from their app routes :)

So feel free to help the community by creating a bundle for your favorite framework!

Platform requirements
---------------------

[](#platform-requirements)

- PHP &gt;= 8.1

Installation
------------

[](#installation)

Install via Composer:

```
composer require opctim/bruno-lang

```

Usage
-----

[](#usage)

### Programmatically creating a collection

[](#programmatically-creating-a-collection)

```
