https://github.com/hongyukeji/goravel-sms
https://github.com/hongyukeji/goravel-sms
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hongyukeji/goravel-sms
- Owner: hongyukeji
- Created: 2024-06-13T17:20:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-14T04:39:43.000Z (about 1 year ago)
- Last Synced: 2025-01-03T16:34:56.729Z (6 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An Sms For A Goravel Extend Package
## Directory Structure
This is a directory standard, but you can change it if you like.
| Directory | Action |
| ----------- | -------------- |
| commands | Store the command files |
| config | Store the config files |
| contracts | Store the contract files |
| facades | Store the facade files |
| root | Store the service provider and package source code |## Install
1. Add package
```
go get -u github.com/hongyukeji/goravel-sms
```2. Register service provider
```
// config/app.go
import sms "github.com/hongyukeji/goravel-sms""providers": []foundation.ServiceProvider{
...
&sms.ServiceProvider{},
}
```3. Publish Configuration
```
go run . artisan vendor:publish --package=github.com/hongyukeji/goravel-sms
```4. Testing
```
// main.go
import smsfacades "github.com/hongyukeji/goravel-sms/facades"fmt.Println(smsfacades.Hello().World())
```The console will print `Welcome To Goravel Package`.