Skip to content

Commit 5727fa1

Browse files
committed
changed namespace of package
1 parent e1d1803 commit 5727fa1

File tree

5 files changed

+173
-144
lines changed

5 files changed

+173
-144
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This component based on PHP International (php-intl) extension so php-intl exten
33

44
known as:
55

6-
- Hijri Shami
6+
- Hijri Shamsi
77
- Jalali Date
88
- JDatetime
99
- هجری شمسی
@@ -31,7 +31,7 @@ Restart your webserver - done.
3131
### Composer installation
3232

3333
```php
34-
composer require tartan/laravel-jalali-date
34+
composer require php-monsters/laravel-jalali-date
3535
```
3636

3737
### Integration with Laravel 5.*
@@ -40,7 +40,7 @@ Add Zaman to app aliases in config/app.php file
4040

4141
```php
4242
// aliases
43-
'Zaman' => Tartan\Zaman\Facades\Zaman::class,
43+
'Zaman' => PhpMonsters\Zaman\Facades\Zaman::class,
4444
```
4545

4646
### Usage samples
@@ -60,9 +60,9 @@ echo Zaman::gToj('2014-09-21 07:12:54', 'EEEE yyyy/MMMM/dd H:m:s');
6060

6161

6262
// Moment samples
63-
echo Zaman::moment(1494328806); // "May 2017"
6463
echo Zaman::moment(strtotime('3 hours ago')); // "3 ساعت قبل"
6564
echo Zaman::moment(strtotime('2017-01-02 00:10:20')); // "2 هفته قبل"
65+
echo Zaman::momentEn(1494328806); // "May 2017"
6666
echo Zaman::momentEn(1494334506); // "last month"
6767

6868
// Blade usage example
@@ -75,11 +75,11 @@ echo Zaman::momentEn(1494334506); // "last month"
7575

7676
## Team
7777

78-
This component is developed by the following person(s) and a bunch of [awesome contributors](https://github.com/iamtartan/laravel-jalali-date/graphs/contributors).
78+
This component is developed by the following person(s) and a bunch of [awesome contributors](https://github.com/php-monsters/laravel-jalali-date/graphs/contributors).
7979

80-
[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130&v=4)](https://github.com/iamtartan) |
80+
[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130&v=4)](https://github.com/samuraee) |
8181
--- |
82-
[Aboozar Ghaffari](https://github.com/iamtartan) |
82+
[Aboozar Ghaffari](https://github.com/samuraee) |
8383

8484

8585
## Support this project

composer.json

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
{
2-
"name": "tartan/laravel-jalali-date",
3-
"description": "Laravel 5+ Jalali datetime component known as ZAMAN",
4-
"keywords": ["datetime", "laravel", "jalali", "shamsi", "hijri", "jDatetime", "Gregorian", "moment"],
5-
"type": "library",
6-
"license": "MIT",
7-
"authors": [
8-
{
9-
"name": "Aboozar Ghaffari",
10-
"email": "aboozar.ghf@gmail.com"
11-
}
12-
],
13-
"require": {
14-
"php": ">=8.0.0",
15-
"ext-intl": "*",
16-
"illuminate/support": ">=8.0.0",
17-
"ext-ctype": "*"
18-
},
19-
"autoload": {
20-
"psr-4": {
21-
"Tartan\\Zaman\\": "src/Zaman"
22-
}
23-
},
24-
"minimum-stability": "stable"
2+
"name": "php-monsters/laravel-jalali-date",
3+
"description": "Laravel Jalali datetime component known as ZAMAN",
4+
"keywords": [
5+
"datetime",
6+
"laravel",
7+
"jalali",
8+
"shamsi",
9+
"hijri",
10+
"jDatetime",
11+
"Gregorian",
12+
"moment"
13+
],
14+
"type": "library",
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Aboozar Ghaffari",
19+
"email": "aboozar.ghf@gmail.com"
20+
}
21+
],
22+
"require": {
23+
"php": ">=8.1",
24+
"ext-ctype": "*",
25+
"ext-intl": "*",
26+
"illuminate/support": ">=8.0.0"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"PhpMonsters\\Zaman\\": "src/Zaman"
31+
}
32+
},
33+
"minimum-stability": "stable"
2534
}

src/Zaman/Facades/Zaman.php

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

3-
namespace Tartan\Zaman\Facades;
3+
namespace PhpMonsters\Zaman\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

77
/**
88
* Class Zaman
9-
* @package Tartan\Zaman
9+
* @package PhpMonsters\Zaman
1010
* @author Aboozar Ghaffari <aboozar.ghf@gmail.com>
1111
*/
1212
class Zaman extends Facade
@@ -18,6 +18,6 @@ class Zaman extends Facade
1818
*/
1919
protected static function getFacadeAccessor ()
2020
{
21-
return 'Tartan\Zaman\Helpers\PersianDateHelper';
21+
return 'PhpMonsters\Zaman\Helpers\PersianDateHelper';
2222
}
2323
}

0 commit comments

Comments
 (0)