ken/calender

Calender Indonesia

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0

Type:packages

1.0.0 2016-12-09 07:01 UTC

This package is auto-updated.

Last update: 2022-01-09 03:42:20 UTC


README

#Calender

Format uang dan tanggal indonesia

##Install

Using composer

composer require ken/calender

Add the service provider to config/app.php

'providers' => [
    Ken\Calender\CalenderServiceProvider::class,
]

'aliases' => [
    'Calender' => Ken\Calender\Facades\Calender::class,
]

##Usage example

{{ Calender::_Rp(10000) }} // Rp10.000,00
{{ Calender::_RpTerbilang(10000) }} // sepuluh ribu rupiah
{{ Calender::_DateIndo('2016-12-09') }} // 09
{{ Calender::_MonthIndo('2016-12-09') }} // desember
{{ Calender::_YearsIndo('2016-12-09') }} // 2016
{{ Calender::_DMY('2016-12-09') }} // 09 desember 2016
{{ Calender::_Day('2016-12-09') }} // jum'at

make Controller.php

public function Price()
{
	$price = Calender::_Rp(10000);
	
	return view('view', compact('price'));
}

make view.blade.php

Price = {{ $price }}

Issues and contribution

Just submit an issue or pull request through GitHub. Thanks!