Download the PHP package fresns/cmd-word-manager without Composer
On this page you can find all versions of the php package fresns/cmd-word-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fresns/cmd-word-manager
More information about fresns/cmd-word-manager
Files in fresns/cmd-word-manager
Package cmd-word-manager
Short Description Command word manager(in laravel) helps plugins(individual functional modules) to communicate with each other easily.
License Apache-2.0
Homepage https://pm.fresns.org/command-word/
Informations about the package cmd-word-manager
About
Command word manager(in laravel) helps plugins(individual functional modules) to communicate with each other easily.
Install
To install through Composer, by run the following command:
Using
Create cmd word service providers
Registered service providers
In the providers
key value of the /config/app.php
file, add the generated command word service provider.
App\Providers\CmdWordServiceProvider::class
- or
Demo/FooBar/Providers/CmdWordServiceProvider::class
Mapping command word
In the properties of the command word provider file /app/Providers/CmdWordServiceProvider.php
, in $cmdWordsMap
, add the command word mapping config.
Using cmd words
Request input
Name | Description |
---|---|
\FresnsCmdWord |
Cmd Word Facades |
FresnsEmail |
Requesting Object fskey , Leaving blank or filling in Fresns means that the main program handles the request |
sendEmail |
Command word |
$wordBody |
Parameter list of command word parameters |
Another way to write
Result output
Name | Description |
---|---|
code | Status code |
message | Status information |
data | Output data |
Code | Message |
---|---|
21000 | Unconfigured plugin |
21001 | Plugin does not exist |
21002 | Command word does not exist |
21003 | Command word unknown error |
21004 | Command word not responding |
21005 | Command word request parameter error |
21006 | Command word execution request error |
21007 | Command word response result is incorrect |
21008 | Data anomalies, queries not available or data duplication |
21009 | Execution anomalies, missing files or logging errors |
21010 | Command word function is disabled |
21011 | Incorrect command word configuration |
Result processing($fresnsResp)
If you are standardized to use command word return results, you can use Fresns Response to help you quickly handle the return of the request.
Example:
Handling abnormal situations
Handling normal situations
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
Fresns Command Word Manager is open-sourced software licensed under the Apache-2.0 license.