PHPackages                             devteampro/magento2-playground - 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. devteampro/magento2-playground

ActiveMagento2-module[Testing &amp; Quality](/categories/testing)

devteampro/magento2-playground
==============================

Playground for devs to quickly run &amp; test services and methods.

1.0.1(11mo ago)12OSL-3.0PHPPHP &gt;=7.4

Since Jun 2Pushed 11mo agoCompare

[ Source](https://github.com/rehanmobin/magento2-playground)[ Packagist](https://packagist.org/packages/devteampro/magento2-playground)[ RSS](/packages/devteampro-magento2-playground/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Magento2 - Playground
=====================

[](#magento2---playground)

Playground enables developers to quickly test any code in their system and access any of the services in the app.

Install via composer
--------------------

[](#install-via-composer)

```
composer require devteampro/magento2-playground

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

```

Usage
-----

[](#usage)

To enable the playground, just copy the `playground.php.dist` file from module's root dir to **dev/tools** directory of the project `dev/tools/playground.php`.

If this module is installed manually in `app/code` then the path would be `app/code/DTP/Playground/playground.php.dist`.
Or if the module is installed via composer then the path would be `vendor/devteampro/magento2-playground/playground.php.dist`.

Add `playground.php` to `.gitignore` file

```
/dev/tools/playground.php

```

This file needs to return a closure. Here's an example:

```
