This Visual Studio Code extension is specifically designed to enhance productivity when developing Bagisto-based PHP projects. It provides several powerful features to simplify and speed up the coding process by offering auto-suggestions, commands, and tools tailored for Bagisto development.
-
Trigger: Type
wkcl
to view suggestions for importing Bagisto classes. -
Functionality: This feature suggests commonly used Bagisto classes for quick and easy imports.
-
Command:
- Press
Ctrl + Shift + P
. - Find and select Bagisto PHP Class Template.
- Press
-
Functionality:
- Generates and inserts a dummy Bagisto class template into your file for rapid development.
-
Import commonly used Bagisto components like Repositories, Models, Controllers, Contracts and Helpers using these triggers:
wkco
for Controllerswkre
for Repositorieswkmo
for Modelswkhe
for Helperswkcn
for Contracts
-
Functionality:
- Provides auto-suggestions for importing these components directly into your code.
-
Trigger: Type
wkpr
within the__construct
method to view suggestions for injecting dependencies. -
Functionality:
- Suggests Bagisto classes for dependency injection.
- Ensures already injected classes are excluded from the suggestions.
-
Command:
- Press
Ctrl + Shift + P
. - Find and select the Create Bagisto Module command.
- Enter your package name.
- Press
-
Functionality:
- Automatically generates the basic Bagisto module structure, including essential files and folders.
- Simplifies the initial setup process for creating new Bagisto modules.
-
Trigger: Type
wkev
to view suggestions for importing Bagisto Events. -
Functionality: This feature suggests Bagisto all events for quick and easy imports.
-
Install the Extension:
- Search for the Bagisto PHP Extension in the Visual Studio Code marketplace and install it.
-
Activate Features:
- Use the specified triggers or commands to activate different functionalities.
-
Customize Your Workflow:
- Integrate the features seamlessly into your Bagisto development workflow to save time and improve code quality.
- Visual Studio Code (latest version recommended)
- PHP 7.4 or higher
- Bagisto project setup
Contributions are welcome! Feel free to submit issues or pull requests to improve the extension.
This extension is licensed under the MIT License.