Skip to content

Commit

Permalink
changed namespace of package
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Jan 1, 2024
1 parent e1d1803 commit 5727fa1
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 144 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This component based on PHP International (php-intl) extension so php-intl exten

known as:

- Hijri Shami
- Hijri Shamsi
- Jalali Date
- JDatetime
- هجری شمسی
Expand Down Expand Up @@ -31,7 +31,7 @@ Restart your webserver - done.
### Composer installation

```php
composer require tartan/laravel-jalali-date
composer require php-monsters/laravel-jalali-date
```

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

```php
// aliases
'Zaman' => Tartan\Zaman\Facades\Zaman::class,
'Zaman' => PhpMonsters\Zaman\Facades\Zaman::class,
```

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


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

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

## Team

This component is developed by the following person(s) and a bunch of [awesome contributors](https://github.com/iamtartan/laravel-jalali-date/graphs/contributors).
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).

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


## Support this project
Expand Down
55 changes: 32 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
{
"name": "tartan/laravel-jalali-date",
"description": "Laravel 5+ Jalali datetime component known as ZAMAN",
"keywords": ["datetime", "laravel", "jalali", "shamsi", "hijri", "jDatetime", "Gregorian", "moment"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Aboozar Ghaffari",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.0.0",
"ext-intl": "*",
"illuminate/support": ">=8.0.0",
"ext-ctype": "*"
},
"autoload": {
"psr-4": {
"Tartan\\Zaman\\": "src/Zaman"
}
},
"minimum-stability": "stable"
"name": "php-monsters/laravel-jalali-date",
"description": "Laravel Jalali datetime component known as ZAMAN",
"keywords": [
"datetime",
"laravel",
"jalali",
"shamsi",
"hijri",
"jDatetime",
"Gregorian",
"moment"
],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Aboozar Ghaffari",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.1",
"ext-ctype": "*",
"ext-intl": "*",
"illuminate/support": ">=8.0.0"
},
"autoload": {
"psr-4": {
"PhpMonsters\\Zaman\\": "src/Zaman"
}
},
"minimum-stability": "stable"
}
6 changes: 3 additions & 3 deletions src/Zaman/Facades/Zaman.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Tartan\Zaman\Facades;
namespace PhpMonsters\Zaman\Facades;

use Illuminate\Support\Facades\Facade;

/**
* Class Zaman
* @package Tartan\Zaman
* @package PhpMonsters\Zaman
* @author Aboozar Ghaffari <aboozar.ghf@gmail.com>
*/
class Zaman extends Facade
Expand All @@ -18,6 +18,6 @@ class Zaman extends Facade
*/
protected static function getFacadeAccessor ()
{
return 'Tartan\Zaman\Helpers\PersianDateHelper';
return 'PhpMonsters\Zaman\Helpers\PersianDateHelper';
}
}
Loading

0 comments on commit 5727fa1

Please sign in to comment.