Download the PHP package mafuth/php-cli without Composer
On this page you can find all versions of the php package mafuth/php-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mafuth/php-cli
More information about mafuth/php-cli
Files in mafuth/php-cli
Package php-cli
Short Description About simple command line interface and framework for PHP focuesed on light weight and simplicity
License MIT
Homepage https://github.com/mafuth/php-CLI
Informations about the package php-cli

php-CLI
This project requires PHP as an executable command
Installation
-
Create a project
-
Check for installation
-
Configure the installation
-
test connection to database
- Start a local server
ajax folder
This is where cli generates ajax request files
comands folder
This is where cli generates all you run command files
database folder
inside database/create is all the cli generates database table controllers
handlers folder
This is where cli generates handle files
views folder
This is where you put you php code files that generate views on the front end
index and main files
Please do not edit these files as these are important components
requests file
This file handles all the requests to the server, edit this file as needed
To disable minification change request file compiler like shown below
If you want to use blade templating engine you can check documentation of BladeOne
config.ini file
This is the main config file of the server
Usage
git commands
- Configure git
On the next step press Enter to choose the default value
windows
mac & linux
Now go to https://github.com/settings/keys and add the key you just generated / opened on note pad , save the ssh keys
- Test git
If you see a message like 'Hi user! You've successfully authenticated, but GitHub does not provide shell access.' then everything is okay
create command
Create a database table (replace '-- your table name --' with any name of your choice)
Create a handler for post request (replace '-- your handler name --' with any name of your choice)
Create a ajax request handler for all xml requests (replace '-- your handler name --' with any name of your choice)
Create a new run command (replace '-- your command name --' with any name of your choice)
Data base tables command
Drop all tables and delete create function files
or use
if want edit a table layout just edit the table lay out file at (database/create) directory and run the command below
or use
run command
This command is used to run scripts created using (php cli create run-command -- your command name -- )
building Database queries ( reffer to 'classes/db.class.php' )
select from
select from where
delete from
update from
insert to
PWA command
This command is used generate PWA code for ur website this command requires node js and pwa asset generator by onderceylan
PWA also supports onesignal SDK which is also included in php-CLI
Composer commands
Install new composer packeges (replace '-- package name --' with any composer package of your choice)
Ftp deploy from github
Setup github workflow to easily deploy your websites to your servers using ftp or sftp
Docker
Setup a full docker enviroment for development
Database Backup
Backup your database
restore your database from backup
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!