Dephpugger

Dephpugger

  • Docs
  • About Us

›Configuration

Dephpugger

  • About

Installation

  • Dependencies
  • XDebug
  • Composer
  • Browser Plugin
  • Dephpugger

Usage

  • Usage Video Tutorial
  • Running Dephpugger
  • Commands to Run
  • Running for Web
  • Running with PHPUnit

Configuration

  • File Configuration
  • Lumen
  • Laravel
  • Zend Framework 2
  • Symfony
  • Slim
  • Silex
  • Yii2

Zend Framework 2

Using Dephpugger in ZF2

Add in root directory the file .dephpugger.yml with the content bellow.

---
server:
  path: ./public/
  file: index.php
  port: 8080

The ZF2 start the server using a command setted in composer.json running composer serve. If you want keep using this command instead of dephpugger server and dephpugger debug, you can change the composer.json file.

Replace in scripts this line.

....
        "serve": "php -S 0.0.0.0:8080 -t public public/index.php",
....

To this.

        "serve": "dephpugger server",

If you aren't using the dephpugger in global mode, you can run composer require tacnoman/dephpugger and add this lines.

        "serve": "php vendor/bin/dephpugger server",

And now run in different terminals.

$ composer serve
$ dephpugger debug # Or php vendor/bin/dephpugger debug

Open http://localhost:8080 and get work!

← LaravelSymfony →
  • Using Dephpugger in ZF2
Dephpugger
Docs
Getting StartedUsageConfiguration Reference
Articles and Videos
How debug Drupal applicationsSingapore PHP User GroupHow debug PHP in terminal
More
BlogGitHubStar
Copyright © 2024 Tacnoman