A Simple and Powerful REPL for Laravel Projects
Psy REPL is an interactive shell for Laravel projects, designed to enhance your development experience. Built on top of Native PHP, it offers a seamless interface for testing and debugging your Laravel code in real time.
Native PHP Desktop App: A desktop application built with PHP, no need for PHP installation on your machine to run the app.
Interactive Shell: Execute Laravel commands, run code snippets, and test your applications within a dedicated REPL environment.
Cross-Platform Support: Runs effortlessly on any platform, whether you're using Docker or a bare-metal host environment.
Dashboard screen:
REPL screen:
At this moment it can be built for all platforms, but it is only tested with Linux and Windows. Just download form releases and install it.
While you don't need PHP installed on your machine to run the Psy REPL, you do need PHP available in your environment if you wish to develop or use it as a REPL:
- Docker Users: Ensure PHP is available within your Docker environment.
- Bare Metal Users: Ensure PHP is installed on your host machine.
To get started with development:
- Clone the repository:
git clone https://github.com/Jacked-PHP/psy-repl.git
- Create the
.env
:cp .env.example .env
- Generate key:
php artisan key:generate
- Install dependencies:
composer install npm install
- Serve the application:
php artisan native:serve
To build the application for distribution:
- Run the build command
rm -rf vendor node_modules composer install npm ci npm run build php artisan native:build linux x64
- Find the installable assets in the
./dist
directory.
- Make sure you followed the development setup;
cp .env.example .env composer install npm install php artisan key:generate
- Migrate the database;
php artisan migrate
- Run below command and follow the prompts to build the application (You may need to run this command in a terminal that has administrator privilages);
php artisan native:build
- Find the installable assets in the
./dist
directory.
Troubleshooting
If you get an error saying The process "composer install --no-dev" exceeded the timeout of 60 seconds.
, run the php artisan native:build
command again.
If you still cannot build the application with administrator privilages, go to the Task manager
and find if Electron
is still running and, if it is running end it.
This is a Native PHP project. In other words, it is a desktop app built with PHP. To run it, you don't need to have PHP installed on your machine, but to develop with it, you do. But, for the app to accomplish its goals, because it is a REPL, you need PHP to be available in the environment where you are running it: if docker, to be available in docker, if bare metal, in the host machine.
We welcome contributions to Psy REPL! Whether you want to report bugs, suggest new features, or contribute code, we appreciate your involvement.