PHPackages                             peterfox/behat-resources-extension - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. peterfox/behat-resources-extension

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

peterfox/behat-resources-extension
==================================

A Behat extension for using configs as loadable resources

1.0.1(10y ago)0751MITPHP

Since Dec 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/peterfox/behat-resources-extension)[ Packagist](https://packagist.org/packages/peterfox/behat-resources-extension)[ RSS](/packages/peterfox-behat-resources-extension/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Behat Resources
===============

[](#behat-resources)

A simple little extension for Behat which will let you turn yaml files into Models/Entities/Objects to make your given steps better.

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

[](#installation)

Install via composer:

```
composer require peterfox/behat-resources-extension

```

Then Add the extension to your behat.yml config:

```
# behat.yml

default:
  ...
  extensions:
    BehatResources\ResourceExtension:
        path:
          resource: Resources # default value
          base: # Not required but useful, it will otherwise be the folder for the context loaded
        resource_map: # This is a map of Directories and the class it is an alias for
          User: Namespace\Of\Entity
```

Make an implementation for a ResourceFactory like the example below for Laravel/Eloquent:

```
