An open API service indexing awesome lists of open source software.

https://github.com/hongyukeji/goravel-sms


https://github.com/hongyukeji/goravel-sms

Last synced: 4 months ago
JSON representation

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`.