Quickstart on Linux
This guide gets you from zero to a working local workflow with Phant on Linux.
What you will do
Section titled “What you will do”- Download a Phant binary.
- Launch Phant and connect your first project.
- Confirm site routing, PHP version, and service state.
- Verify dump output capture in the app UI.
Before you start
Section titled “Before you start”- Linux desktop environment (X11 or Wayland).
- A local PHP/Laravel project.
- Sudo access if your distro needs package setup for PHP or services.
1. Download and run Phant
Section titled “1. Download and run Phant”Get the latest release from the project releases page:
After download:
- Extract the archive.
- Make it executable.
- Run the binary.
chmod +x ./phant./phant2. Connect your first project
Section titled “2. Connect your first project”In Phant:
- Open the Sites area.
- Add or detect your project path.
- Assign the local domain (for example,
myapp.test). - Set the PHP runtime version required by your app.
Expected result:
- Your project appears in the site list.
- Domain and PHP version are visible in one place.
3. Verify local services
Section titled “3. Verify local services”Open the Services view and check current status for the tools you use, for example:
- MariaDB or MySQL
- Postgres
- Redis or Valkey
Expected result:
- You can immediately tell what is running and what is not.
- No need to cross-check multiple terminal windows.
4. Verify dump capture
Section titled “4. Verify dump capture”Open your Laravel app and trigger a debug call:
dump(['status' => 'ok', 'source' => 'quickstart']);Then confirm the payload appears in Phant’s dumps panel.
Expected result:
- Dump output is visible in Phant.
- Browser/network debugging noise is reduced.
Troubleshooting
Section titled “Troubleshooting”Domain does not resolve
Section titled “Domain does not resolve”- Confirm the site entry exists in Phant.
- Re-apply linking/parking action in the Sites section.
- Restart browser and retry.
Service status looks wrong
Section titled “Service status looks wrong”- Restart the service from your distro tools.
- Re-open the Services view.
- Ensure no other local manager is competing for the same port.
Dumps are not appearing
Section titled “Dumps are not appearing”- Verify your project has dump hooks enabled as documented by Phant.
- Retry with a simple
dump()call on a route hit. - Check that the app is running under the expected PHP version.
Next steps
Section titled “Next steps”- Continue with the reference docs for command and option details.
- Follow releases for new capabilities and fixes: https://github.com/phant-app/phant/releases