PHPackages                             dyned/vasara - 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. dyned/vasara

ActiveLibrary

dyned/vasara
============

Extract postman json file to user demand

v0.1.5(7y ago)019MITPHPPHP &gt;=7.0

Since Apr 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/stampubolon/vasara)[ Packagist](https://packagist.org/packages/dyned/vasara)[ RSS](/packages/dyned-vasara/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Vasara
======

[](#vasara)

Vasara (finnish: hammer) Extract Rest API json file for easy access by user and ignore unused element.

Getting Started
---------------

[](#getting-started)

This package use for laravel only (lumen not tested yet). Extracting a single Rest API json file to an object. Separate value to info, and routes.

Rest API Json FIle
------------------

[](#rest-api-json-file)

Now only support postman file. We will update for another json file in the future.

### Installation

[](#installation)

Require this package in your composer.json and run composer update (or run composer require composer require dyned/vasara directly).

```
composer require dyned/vasara

```

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
DynEd\Vasara\VasaraServiceProvider::class

```

You need to publish the config file for this package. This will add the file config/vasara.php, where you can configure this package.

```
$ php artisan vendor:publish --provider="DynEd\Vasara\VasaraServiceProvider" --tag=config

```

### Usage

[](#usage)

Instantiate a vasara object with json content.

```
$vasara = new Vasara($json);

```

Or

You can create it by access file directly using laravel File Facades.

```
$file = File::get('/path/to/postman/json/file.json');

$vasara = new Vasara($file);

```

Change host of url with proper url

```
$vasara->changeHost('http://localhost:8181');

```

Tell vasara to collect all data from json file

```
$vasara->run();

```

Check postman route existence to return laravel abort function.

```
if ( ! $vasara->routeExist()) {
    abort(404, 'Route not found');
}

```

Retrieve all routes from json.

```
$vasara->getRoutes();

```

### Another functions

[](#another-functions)

- Retrieve all informations. ```
    $vasara->getInfo();

    ```

### Return value

[](#return-value)

```
Collection {#2343 ▼
  #items: array:18 [▼
    0 => {#200 ▼
      +"name": "[Auth] Login"
      +"description": "Retrieve user token"
      +"method": "POST"
      +"header": "[]"
      +"body": "{"email":"email@example.com","password":"secret"}"
      +"url": {#2344 ▼
        +"host": "http://localhost:8000"
        +"path": "auth/login"
        +"full": "http://localhost:8000/auth/login"
      }
    }
    1 => {#2345 ▶}
    2 => {#2347 ▶}
    3 => {#2349 ▶}
    4 => {#2351 ▶}
    5 => {#2353 ▶}
    6 => {#2355 ▶}
    7 => {#2357 ▶}
    8 => {#2359 ▶}
    9 => {#2361 ▶}
    10 => {#2363 ▶}
    11 => {#2365 ▶}
    12 => {#2367 ▶}
    13 => {#2369 ▶}
    14 => {#2371 ▶}
    15 => {#2373 ▶}
    16 => {#2375 ▶}
    17 => {#2377 ▶}
  ]
}

```

Authors
-------

[](#authors)

- **Sabar Tampubolon** - *Initial work* - [stampubolon](https://github.com/stampubolon)

Owner
-----

[](#owner)

This package published on behalf of [DynEd International, Inc](https://www.dyned.com/).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

6

Last Release

2877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a21cf78283c09ffd6db1ec2e007b33acd061d79f55f88be76869d8bddf0f5514?d=identicon)[jsilalahi](/maintainers/jsilalahi)

---

Top Contributors

[![stampubolon](https://avatars.githubusercontent.com/u/37098202?v=4)](https://github.com/stampubolon "stampubolon (9 commits)")

### Embed Badge

![Health badge](/badges/dyned-vasara/health.svg)

```
[![Health](https://phpackages.com/badges/dyned-vasara/health.svg)](https://phpackages.com/packages/dyned-vasara)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
