Skip to content

Commit 4118b9d

Browse files
author
riccardodallavia
committed
UPDATE package namespace
1 parent a7ca6c9 commit 4118b9d

File tree

13 files changed

+39
-35
lines changed

13 files changed

+39
-35
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: h-farm
1+
github: maize-tech

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/h-farm/laravel-email-domain-rule/discussions/new?category=q-a
4+
url: https://github.com/maize-tech/laravel-email-domain-rule/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/h-farm/laravel-email-domain-rule/discussions/new?category=ideas
7+
url: https://github.com/maize-tech/laravel-email-domain-rule/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://github.com/h-farm/laravel-email-domain-rule/issues/new
10+
url: https://github.com/maize-tech/laravel-email-domain-rule/issues/new
1111
about: Report a reproducable bug

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-email-domain-rule` will be documented in this file.
44

5+
## 2.0.0 - 2021-10-12
6+
7+
- UPDATE package namespace
8+
59
## 1.0.0 - 2021-06-16
610

711
- first release 🚀

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 H-FARM SPA <[email protected]>
3+
Copyright (c) 2021 MAIZE SRL <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

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

33
# Laravel Email Domain Rule
44

5-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/h-farm/laravel-email-domain-rule.svg?style=flat-square)](https://packagist.org/packages/h-farm/laravel-email-domain-rule)
6-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/h-farm/laravel-email-domain-rule/run-tests?label=tests)](https://github.com/h-farm/laravel-email-domain-rule/actions?query=workflow%3Arun-tests+branch%3Amain)
7-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/h-farm/laravel-email-domain-rule/Check%20&%20fix%20styling?label=code%20style)](https://github.com/h-farm/laravel-email-domain-rule/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
8-
[![Total Downloads](https://img.shields.io/packagist/dt/h-farm/laravel-email-domain-rule.svg?style=flat-square)](https://packagist.org/packages/h-farm/laravel-email-domain-rule)
5+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/maize-tech/laravel-email-domain-rule.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-email-domain-rule)
6+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-email-domain-rule/run-tests?label=tests)](https://github.com/maize-tech/laravel-email-domain-rule/actions?query=workflow%3Arun-tests+branch%3Amain)
7+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-email-domain-rule/Check%20&%20fix%20styling?label=code%20style)](https://github.com/maize-tech/laravel-email-domain-rule/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
8+
[![Total Downloads](https://img.shields.io/packagist/dt/maize-tech/laravel-email-domain-rule.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-email-domain-rule)
99

1010
This package allows to define a subset of allowed email domains and validate any user registration form with a custom rule.
1111

@@ -14,19 +14,19 @@ This package allows to define a subset of allowed email domains and validate any
1414
You can install the package via composer:
1515

1616
```bash
17-
composer require h-farm/laravel-email-domain-rule
17+
composer require maize-tech/laravel-email-domain-rule
1818
```
1919

2020
You can publish and run the migrations with:
2121

2222
```bash
23-
php artisan vendor:publish --provider="HFarm\EmailDomainRule\EmailDomainRuleServiceProvider" --tag="email-domain-rule-migrations"
23+
php artisan vendor:publish --provider="Maize\EmailDomainRule\EmailDomainRuleServiceProvider" --tag="email-domain-rule-migrations"
2424
php artisan migrate
2525
```
2626

2727
You can publish the config file with:
2828
```bash
29-
php artisan vendor:publish --provider="HFarm\EmailDomainRule\EmailDomainRuleServiceProvider" --tag="email-domain-rule-config"
29+
php artisan vendor:publish --provider="Maize\EmailDomainRule\EmailDomainRuleServiceProvider" --tag="email-domain-rule-config"
3030
```
3131

3232
This is the content of the published config file:
@@ -43,7 +43,7 @@ return [
4343
|
4444
*/
4545

46-
'email_domain_model' => HFarm\EmailDomainRule\Models\EmailDomain::class,
46+
'email_domain_model' => Maize\EmailDomainRule\Models\EmailDomain::class,
4747

4848
/*
4949
|--------------------------------------------------------------------------
@@ -78,7 +78,7 @@ To use the package, run the migration and fill in the table with a list of accep
7878
You can then just add the custom validation rule to validate, for example, a user registration form.
7979

8080
```php
81-
use HFarm\EmailDomainRule\EmailDomainRule;
81+
use Maize\EmailDomainRule\EmailDomainRule;
8282
use Illuminate\Support\Facades\Validator;
8383

8484
$email = '[email protected]';
@@ -104,8 +104,8 @@ If needed, you can optionally add wildcard domains to the `email_domains` databa
104104
The default wildcard character is an asterisk (`*`), but you can customize it within the `email_domain_wildcard` setting.
105105

106106
```php
107-
use HFarm\EmailDomainRule\EmailDomainRule;
108-
use HFarm\EmailDomainRule\Models\EmailDomain;
107+
use Maize\EmailDomainRule\EmailDomainRule;
108+
use Maize\EmailDomainRule\Models\EmailDomain;
109109
use Illuminate\Support\Facades\Validator;
110110

111111
EmailDomain::create(['domain' => '*.example.com']);
@@ -130,7 +130,7 @@ You can also override the default `EmailDomain` model to add any additional fiel
130130
This can be useful when working with a multi-tenancy scenario in a single database system: in this case you can just add a `tenant_id` column to the migration and model classes, and apply a global scope to the custom model.
131131

132132
```php
133-
use HFarm\EmailDomainRule\EmailDomainRule as BaseEmailDomain;
133+
use Maize\EmailDomainRule\EmailDomainRule as BaseEmailDomain;
134134
use Illuminate\Database\Eloquent\Builder;
135135

136136
class EmailDomain extends BaseEmailDomain

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "h-farm/laravel-email-domain-rule",
2+
"name": "maize-tech/laravel-email-domain-rule",
33
"description": "Laravel Email Domain Rule",
44
"keywords": [
5-
"h-farm",
5+
"maize-tech",
66
"laravel-email-domain-rule"
77
],
8-
"homepage": "https://github.com/h-farm/laravel-email-domain-rule",
8+
"homepage": "https://github.com/maize-tech/laravel-email-domain-rule",
99
"license": "MIT",
1010
"authors": [
1111
{
1212
"name": "Riccardo Dalla Via",
1313
"email": "[email protected]",
14-
"homepage": "https://h-farm.com",
14+
"homepage": "https://innovation.h-farm.com",
1515
"role": "Developer"
1616
}
1717
],
@@ -32,12 +32,12 @@
3232
},
3333
"autoload": {
3434
"psr-4": {
35-
"HFarm\\EmailDomainRule\\": "src"
35+
"Maize\\EmailDomainRule\\": "src"
3636
}
3737
},
3838
"autoload-dev": {
3939
"psr-4": {
40-
"HFarm\\EmailDomainRule\\Tests\\": "tests"
40+
"Maize\\EmailDomainRule\\Tests\\": "tests"
4141
}
4242
},
4343
"scripts": {
@@ -52,7 +52,7 @@
5252
"extra": {
5353
"laravel": {
5454
"providers": [
55-
"HFarm\\EmailDomainRule\\EmailDomainRuleServiceProvider"
55+
"Maize\\EmailDomainRule\\EmailDomainRuleServiceProvider"
5656
]
5757
}
5858
},

config/email-domain-rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
|
1212
*/
1313

14-
'email_domain_model' => HFarm\EmailDomainRule\Models\EmailDomain::class,
14+
'email_domain_model' => Maize\EmailDomainRule\Models\EmailDomain::class,
1515

1616
/*
1717
|--------------------------------------------------------------------------

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
verbose="true"
2020
>
2121
<testsuites>
22-
<testsuite name="HFarm Test Suite">
22+
<testsuite name="Maize Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/EmailDomainRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace HFarm\EmailDomainRule;
3+
namespace Maize\EmailDomainRule;
44

5-
use HFarm\EmailDomainRule\Models\EmailDomain;
65
use Illuminate\Contracts\Validation\Rule;
76
use Illuminate\Support\Str;
7+
use Maize\EmailDomainRule\Models\EmailDomain;
88

99
class EmailDomainRule implements Rule
1010
{

src/EmailDomainRuleServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\EmailDomainRule;
3+
namespace Maize\EmailDomainRule;
44

55
use Spatie\LaravelPackageTools\Package;
66
use Spatie\LaravelPackageTools\PackageServiceProvider;

0 commit comments

Comments
 (0)