zenstruck / phpmyadmin-server
Run phpMyAdmin in the background with a PHP webserver
Fund package maintenance!
kbond
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 1
Type:project
Requires
- php: >=8.1
- symfony/console: ^6.4
- symfony/filesystem: ^6.4
- symfony/process: ^6.4
Requires (Dev)
- laravel-zero/phar-updater: ^1.1.1
- phpstan/phpstan: ^1.8
README
This library gives you a phpmyadmin
command to start/stop a php webserver running phpMyAdmin
in the background.
Installation
PHAR
The preferred method of installation is to use the PHAR which can be downloaded from the most recent GitHub Release. This method ensures you will not have any dependency conflict issue.
wget https://github.com/zenstruck/phpmyadmin-server/releases/latest/download/phpmyadmin.phar -O phpmyadmin && chmod +x phpmyadmin mv phpmyadmin ~/bin # assumes ~/bin is in your PATH
Composer
composer global require zenstruck/phpmyadmin-server
Note: Ensure you have ~/.config/composer/vendor/bin
in your PATH
to give access to the phpmyadmin
command.
Initialization
phpmyadmin init
This command will ask you questions about your setup and download the latest version of phpMyAdmin
to ~/.phpmyadmin
.
Note: If you ever need to change your configuration, run
phpmyadmin init
again.
Start/Stop Server
phpmyadmin
Check Status
phpmyadmin status
This command exits with 0
if running and 1
if not. You can add the following in your .bash_profile
to ensure it's always running:
phpmyadmin status || phpmyadmin
Self-Update
If installed via PHAR, use the self-update
command:
phpmyadmin self-update