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

Silex

Using Dephpugger in Silex Framework

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

---
server:
  path: ./web/
  port: 8888

The Silex Framework start the web application in development using the composer running composer run. Go to your composer.json file and replace this:

    "scripts": {
        "run": [
            "echo 'Started web server on http://localhost:8888'",
            "php -S localhost:8888 -t web"
        ]
    }

To this:

    "scripts": {
        "run": [
            "echo 'Started web server on http://localhost:8888'",
            "dephpugger server" << This line
        ]
    }

If you aren't using the dephpugger in global mode, you can change the line dephpugger server to php vendor/bin/dephpugger server.

Run the commands bellow in different terminal windows (You must run in the root path).

$ COMPOSER_PROCESS_TIMEOUT=0 composer run # To start a server
$ dephpugger debug # Or "php vendor/bin/dephpugger debug" in local mode

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

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