phpslides / cli
CLI tool for PhpSlides Framework
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/phpslides/cli
README
The phpslides CLI tool is designed to simplify your development workflow with PhpSlides. With this tool, you can manage and run PhpSlides projects with ease, avoiding the need to manually use PHP commands.
Installation
To install the phpslides CLI tool globally, follow these steps:
-
Install the CLI Tool Globally
Run the following command to install the
phpslidesCLI tool:composer global require phpslides/cli
-
Ensure the Global Composer Bin Directory is in Your PATH
Add the Composer global bin directory to your PATH to ensure the
phpslidescommand is available in your terminal:export PATH="$PATH:$(composer global config bin-dir --absolute)"
To make this change permanent, add the above line to your shell configuration file (e.g.,
~/.bashrc,~/.zshrc, or~/.profile), then source the file:source ~/.bashrc # or source ~/.zshrc, or source ~/.profile
Usage
To verify the installation run command:
phpslides
Once installed, you can use the phpslides command to interact with your PhpSlides projects. Below are the available commands:
Examples
-
Serve the Application
To start the development server for your PhpSlides application, run:
phpslides serve
This will start the server and you can access your application at
http://localhost:2200which is the default port.And you can also change the port in this format:
host:portExample command:
phpslides serve 127.0.0.1:8000
It'll serve your project at the server at
http://127.0.0.1:8000then you can access it anywhere. -
Create new PhpSlides project
To create a new PhpSlides project, run the command:
phpslides create project-name
Replace the
project-namewith the name of your project. This wll create a new project in the current location of the terminal and the project directory will be the name of the project.
Contributing
If you would like to contribute to the phpslides CLI tool, please fork the repository and submit a pull request. Your contributions and feedback are welcome!
License
The phpslides CLI tool is licensed under the MIT License. See the LICENSE file for more details.