Skip to content

Commit 0b5eb65

Browse files
committed
First commit. Add base skeleton.
0 parents  commit 0b5eb65

File tree

8 files changed

+817
-0
lines changed

8 files changed

+817
-0
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/.phpunit.cache
2+
/node_modules
3+
/public/build
4+
/public/hot
5+
/public/storage
6+
/storage/*.key
7+
/vendor
8+
.env
9+
.env.backup
10+
.env.production
11+
.phpunit.result.cache
12+
Homestead.json
13+
Homestead.yaml
14+
auth.json
15+
npm-debug.log
16+
yarn-error.log
17+
/.fleet
18+
/.idea
19+
/.vscode

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Luciano Tonet
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Laravel Groq Package
2+
3+
This package provides integration for using the lucianotonet/groq-php package within Laravel 11 applications.
4+
5+
## Installation
6+
7+
You can install the package via composer:
8+
9+
```bash
10+
composer require lucianotonet/groq-laravel
11+
```
12+
13+
## Usage
14+
15+
### Groq Facade
16+
17+
You can use the `Groq` facade to interact with the Groq package:
18+
19+
```php
20+
use LucianoTonet\GroqLaravel\Facades\Groq;
21+
22+
// Example usage
23+
$result = Groq::query('your_groq_query_here');
24+
```
25+
26+
### GroqServiceProvider
27+
28+
The `GroqServiceProvider` is automatically registered by Laravel and provides the binding for the `Groq` class:
29+
30+
```php
31+
use LucianoTonet\GroqLaravel\Groq;
32+
33+
// Example usage within a service or controller
34+
$groq = app('Groq');
35+
$result = $groq->query('your_groq_query_here');
36+
```
37+
38+
## License
39+
40+
This package is open-sourced software licensed under the MIT license. See the [LICENSE](LICENSE) file for more information.

composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "lucianotonet/groq-laravel",
3+
"description": "Unofficial Laravel package for the Groq API",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Luciano Tonet",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"php": ">=8.1",
14+
"lucianotonet/groq-php": "^0.0.1"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"LucianoTonet\\GroqLaravel\\": "src/"
19+
}
20+
},
21+
"extra": {
22+
"laravel": {
23+
"providers": [
24+
"LucianoTonet\\GroqLaravel\\GroqServiceProvider"
25+
],
26+
"aliases": {
27+
"Groq": "LucianoTonet\\GroqLaravel\\Facades\\Groq"
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)