Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 9c56c50

Browse files
committed
update template
1 parent e20d56e commit 9c56c50

File tree

5 files changed

+22
-28
lines changed

5 files changed

+22
-28
lines changed

README.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
![Laravel Package Template](https://user-images.githubusercontent.com/37669560/161713670-e6d795c0-9ddf-4458-9eb5-d596a5b9399c.png)
1+
![Laravel SQL Function Repository](https://user-images.githubusercontent.com/37669560/161713670-e6d795c0-9ddf-4458-9eb5-d596a5b9399c.png)
22

3-
# Laravel Package Template
4-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/michael-rubel/laravel-package-template.svg?style=flat-square&logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-package-template)
5-
[![Total Downloads](https://img.shields.io/packagist/dt/michael-rubel/laravel-package-template.svg?style=flat-square&logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-package-template)
6-
[![Code Quality](https://img.shields.io/scrutinizer/quality/g/michael-rubel/laravel-package-template.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-package-template/?branch=main)
7-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/michael-rubel/laravel-package-template.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-package-template/?branch=main)
8-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/michael-rubel/laravel-package-template/run-tests/main?style=flat-square&label=tests&logo=github)](https://github.com/michael-rubel/laravel-package-template/actions)
9-
[![PHPStan](https://img.shields.io/github/workflow/status/michael-rubel/laravel-package-template/phpstan/main?style=flat-square&label=larastan&logo=laravel)](https://github.com/michael-rubel/laravel-package-template/actions)
3+
# Laravel SQL Function Repository
4+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-sql-function-repository)
5+
[![Total Downloads](https://img.shields.io/packagist/dt/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-sql-function-repository)
6+
[![Code Quality](https://img.shields.io/scrutinizer/quality/g/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-sql-function-repository/?branch=main)
7+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-sql-function-repository/?branch=main)
8+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/michael-rubel/laravel-sql-function-repository/run-tests/main?style=flat-square&label=tests&logo=github)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
9+
[![PHPStan](https://img.shields.io/github/workflow/status/michael-rubel/laravel-sql-function-repository/phpstan/main?style=flat-square&label=larastan&logo=laravel)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
1010

11-
It is a ready template for Laravel packages.
12-
13-
### What's inside
14-
- Basic skeleton with Service Provider and configuration file;
15-
- Laravel Package Tools by Spatie for easier package management;
16-
- PHPStan/larastan & CodeSniffer code quality checks;
17-
- Ready-to-use GitHub Action scripts for testing;
18-
19-
Fill or change it the way you like.
11+
This packages provides repository class to execute SQL functions available in the database.
2012

2113
---
2214

@@ -28,7 +20,7 @@ The package requires PHP `^8.x` and Laravel `^8.71` or `^9.0`.
2820
## Installation
2921
Install the package using composer:
3022
```bash
31-
composer require michael-rubel/laravel-package-template
23+
composer require michael-rubel/laravel-sql-function-repository
3224
```
3325

3426
## Usage

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"name": "michael-rubel/laravel-package-template",
2+
"name": "michael-rubel/laravel-sql-function-repository",
33
"description": "It is an example template for Laravel packages. Fill or change it the way you like.",
44
"keywords": [
55
"michael-rubel",
66
"laravel",
7-
"laravel-package-template"
7+
"laravel-sql-function-repository",
8+
"database",
9+
"sql"
810
],
9-
"homepage": "https://github.com/michael-rubel/laravel-package-template",
11+
"homepage": "https://github.com/michael-rubel/laravel-sql-function-repository",
1012
"license": "MIT",
1113
"authors": [
1214
{
@@ -30,12 +32,12 @@
3032
},
3133
"autoload": {
3234
"psr-4": {
33-
"MichaelRubel\\PackageTemplate\\": "src"
35+
"MichaelRubel\\SqlFunctionRepository\\": "src"
3436
}
3537
},
3638
"autoload-dev": {
3739
"psr-4": {
38-
"MichaelRubel\\PackageTemplate\\Tests\\": "tests"
40+
"MichaelRubel\\SqlFunctionRepository\\Tests\\": "tests"
3941
}
4042
},
4143
"scripts": {
@@ -48,7 +50,7 @@
4850
"extra": {
4951
"laravel": {
5052
"providers": [
51-
"MichaelRubel\\PackageTemplate\\TemplateServiceProvider"
53+
"SqlFunctionRepositoryServiceProvider"
5254
]
5355
}
5456
},

src/TemplateServiceProvider.php renamed to src/SqlFunctionRepositoryServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Spatie\LaravelPackageTools\Package;
88
use Spatie\LaravelPackageTools\PackageServiceProvider;
99

10-
class TemplateServiceProvider extends PackageServiceProvider
10+
class SqlFunctionRepositoryServiceProvider extends PackageServiceProvider
1111
{
1212
/**
1313
* Configure the package.
@@ -19,7 +19,7 @@ class TemplateServiceProvider extends PackageServiceProvider
1919
public function configurePackage(Package $package): void
2020
{
2121
$package
22-
->name('laravel-package-template')
22+
->name('laravel-sql-function-repository')
2323
->hasConfigFile();
2424
}
2525
}

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace MichaelRubel\PackageTemplate\Tests;
44

5-
use MichaelRubel\PackageTemplate\TemplateServiceProvider;
5+
use MichaelRubel\PackageTemplate\SqlFunctionRepositoryServiceProvider;
66
use Orchestra\Testbench\TestCase as Orchestra;
77

88
class TestCase extends Orchestra
@@ -15,7 +15,7 @@ public function setUp(): void
1515
protected function getPackageProviders($app): array
1616
{
1717
return [
18-
TemplateServiceProvider::class,
18+
SqlFunctionRepositoryServiceProvider::class,
1919
];
2020
}
2121

0 commit comments

Comments
 (0)