Expose: An Ngrok Alternative Written in PHP

Expose: An Ngrok Alternative Written in PHP

Expose is a tunnel application by Beyond Code that allows you to share your local websites with others via the internet, written in PHP.

It works by installing the expose composer binary via the composer CLI:

composer global require beyondcode/expose

cd path/to/project
expose .

If you want to use the sharedwithexpose.com domain, you’ll need to sign up for a Beyond Code account (free). Otherwise, you can run your own expose server. Here’s what the CLI looks like once you run expose:

Like Ngrok, Expose has a command-line tool (the client) and a server, which work hand-in-hand to tunnel local websites publicly. It also includes an excellent web-based dashboard on localhost:4040 to inspect requests and responses, replay requests, and copy the equivalent curl command:


Screenshot credit: Beyond Code GmbH

Under the hood, Expose uses the ReactPHP framework. If you are not familiar with ReactPHP, I recommend checking out Marcel’s Learning ReactPHP Video Course to learn how you can use this robust framework with PHP.

Learn More

You can learn more about Expose by checking out the Expose documentation. To learn more about the source code that powers the client and the server, check out beyondcode/expose on GitHub.

Filed in: News
Laravel News Partners

Laravel Jobs

Backend Software Engineer (PHP Developer)
Austin TX, Bonita Springs FL
Certified eSupport Corp
Backend PHP Developer
Hamburg, Germany
ABOUT YOU GmbH
Full-Stack Engineer (Mid to Senior)
Remote (EST, CST)
Voxie
Senior Laravel Developer (AI Applications)
Remote from anywhere in the UK or from our London office
GreenShoot Labs
Full Stack Engineer
Remote
Shelterluv

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.