Laravel Money.

Overview

Laravel Money

Latest Stable Version Total Downloads tests StyleCI codecov License

Note: This project abstracts MoneyPHP

Installation

Run the following command from you terminal:

composer require cknow/laravel-money

or add this to require section in your composer.json file:

"cknow/laravel-money": "~6.0"

then run composer update

Usage

use Cknow\Money\Money;

echo Money::USD(500); // $5.00

Configuration

The defaults are set in config/money.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:

php artisan vendor:publish --provider="Cknow\Money\MoneyServiceProvider"

This is the contents of the published file:

return [
    /*
     |--------------------------------------------------------------------------
     | Laravel money
     |--------------------------------------------------------------------------
     */
    'locale' => config('app.locale', 'en_US'),
    'defaultCurrency' => config('app.currency', 'USD'),
    'currencies' => [
        'iso' => ['RUB', 'USD', 'EUR'],  // 'all' to choose all ISOCurrencies
        'bitcoin' => ['XBT'], // 'all' to choose all BitcoinCurrencies
        'custom' => [
            'MY1' => 2,
            'MY2' => 3
        ]
    ]
];

Advanced Usage

See MoneyPHP for more information

use Cknow\Money\Money;

Money::USD(500)->add(Money::USD(500)); // $10.00
Money::USD(500)->add(Money::USD(500), Money::USD(500)); // $15.00
Money::USD(500)->subtract(Money::USD(400)); // $1.00
Money::USD(500)->subtract(Money::USD(200), Money::USD(100)); // $2.00
Money::USD(500)->multiply(2); // $10.00
Money::USD(1000)->divide(2); // $5.00
Money::USD(830)->mod(Money::USD(300)); // $2.30 -> Money::USD(230)
Money::USD(-500)->absolute(); // $5.00
Money::USD(500)->negative(); // $-5.00
Money::USD(30)->ratioOf(Money::USD(2)); // 15
Money::USD(500)->isSameCurrency(Money::USD(100)); // true
Money::USD(500)->equals(Money::USD(500)); // true
Money::USD(500)->greaterThan(Money::USD(100)); // true
Money::USD(500)->greaterThanOrEqual(Money::USD(500)); // true
Money::USD(500)->lessThan(Money::USD(1000)); // true
Money::USD(500)->lessThanOrEqual(Money::USD(500)); // true
Money::USD(500)->isZero(); // false
Money::USD(500)->isPositive(); // true
Money::USD(500)->isNegative(); // false
Money::USD(500)->getMoney(); // Instance of \Money\Money

// Aggregation
Money::min(Money::USD(100), Money::USD(200), Money::USD(300)); // Money::USD(100)
Money::max(Money::USD(100), Money::USD(200), Money::USD(300)); // Money::USD(300)
Money::avg(Money::USD(100), Money::USD(200), Money::USD(300)); // Money::USD(200)
Money::sum(Money::USD(100), Money::USD(200), Money::USD(300)); // Money::USD(600)

// Formatters
Money::USD(500)->format(); // $5.00
Money::USD(199)->format(null, null, \NumberFormatter::DECIMAL); // 1,99
Money::XBT(41000000)->formatByBitcoin(); // \xC9\x830.41
Money::USD(500)->formatByDecimal(); // 5.00
Money::USD(500)->formatByIntl(); // $5.00
Money::USD(199)->formatByIntl(null, null, \NumberFormatter::DECIMAL); // 1,99
Money::USD(500)->formatByIntlLocalizedDecimal(); // $5.00
Money::USD(199)->formatByIntlLocalizedDecimal(null, null, \NumberFormatter::DECIMAL) // 1.99

// Parsers
Money::parse('$1.00'); // Money::USD(100)
Money::parseByBitcoin("\xC9\x830.41"); // Money::XBT(41000000)
Money::parseByDecimal('1.00', 'USD'); // Money::USD(100)
Money::parseByIntl('$1.00'); // Money::USD(100)
Money::parseByIntlLocalizedDecimal('1.00', 'USD'); // Money::USD(100)

Create your formatter

class MyFormatter implements \Money\MoneyFormatter
{
    public function format(\Money\Money $money)
    {
        return 'My Formatter';
    }
}

Money::USD(500)->formatByFormatter(new MyFormatter()); // My Formatter

Casts

At this stage the cast can be defined in the following ways:

use Cknow\Money\MoneyCast;

protected $casts = [
    // cast money using the currency defined in the package config
    'money' => MoneyCast::class,
    // cast money using the defined currency
    'money' => MoneyCast::class . ':AUD',
    // cast money using the currency defined in the model attribute 'currency'
    'money' => MoneyCast::class . ':currency',
];

In the example above, if the model attribute currency is null, the currency defined in the package configuration is used instead.

Setting money can be done in several ways:

$model->money = 10; // 10.00 USD or any other currency defined
$model->money = 10.23; // 10.23 USD or any other currency defined
$model->money = 'A$10'; // 10.00 AUD
$model->money = '1,000.23'; // 1000.23 USD or any other currency defined
$model->money = '10'; // 0.10 USD or any other currency defined
$model->money = Money::EUR(10); // 10 EUR

When we pass the model attribute holding the currency, such attribute is updated as well when setting money:

$model->currency; // null
$model->money = '€13';
$model->currency; // 'EUR'
$model->money->getAmount(); // '1300'

Helpers

currency('USD');
money(500); // To use default currency present in `config/money.php`
money(500, 'USD');

// Aggregation
money_min(money(100, 'USD'), money(200, 'USD'), money(300, 'USD')); // Money::USD(100)
money_max(money(100, 'USD'), money(200, 'USD'), money(300, 'USD')); // Money::USD(300)
money_avg(money(100, 'USD'), money(200, 'USD'), money(300, 'USD')); // Money::USD(200)
money_sum(money(100, 'USD'), money(200, 'USD'), money(300, 'USD')); // Money::USD(600)

// Parsers
money_parse('$5.00'); // Money::USD(500)
money_parse_by_bitcoin("\xC9\x830.41"); // Money::XBT(41000000)
money_parse_by_decimal('1.00', 'USD'); // Money::USD(100)
money_parse_by_intl('$1.00'); // Money::USD(100)
money_parse_by_intl_localized_decimal('1.00', 'USD'); // Money::USD(100)

Blade Extensions

@currency('USD')
@money(500) // To use default currency present in `config/money.php`
@money(500, 'USD')

// Aggregation
@money_min(@money(100, 'USD'), @money(200, 'USD'), @money(300, 'USD')) // Money::USD(100)
@money_max(@money(100, 'USD'), @money(200, 'USD'), @money(300, 'USD')) // Money::USD(300)
@money_avg(@money(100, 'USD'), @money(200, 'USD'), @money(300, 'USD')) // Money::USD(200)
@money_sum(@money(100, 'USD'), @money(200, 'USD'), @money(300, 'USD')) // Money::USD(600)

// Parsers
@money_parse('$5.00') // Money::USD(500)
@money_parse_by_bitcoin("\xC9\x830.41") // Money::XBT(41000000)
@money_parse_by_decimal('1.00', 'USD') // Money::USD(100)
@money_parse_by_intl('$1.00') // Money::USD(100)
@money_parse_by_intl_localized_decimal('1.00', 'USD') // Money::USD(100)
Comments
  • XBT currency not exists in this repository

    XBT currency not exists in this repository

    Hi I need to use XBT currency, but when I set in config currency to XBT I get error that xbt is not supported by current repository. Do I need to change something to use xbt?

    opened by SerGioPicconti 17
  • MoneyCast uses the decimal formatter.

    MoneyCast uses the decimal formatter.

    I was under the impression that money values should be stored in the database as VARCHAR to help with float rounding issues.

    With that, the MoneyCast class seems use the DecimalFormatter to cast values to Money objects https://github.com/cknow/laravel-money/blob/master/src/MoneyCast.php#L44.

    Shouldn't this use the normal formatter? Perhaps we could get the value, and if it doesn't contain a ".", use the normal formatter? So values like 1000 become $10.00.

    opened by kevinruscoe 16
  • Problem with cents in v6.5.1

    Problem with cents in v6.5.1

    Updating to the last version (coming from 3.8) I noticed all the amounts in my application multiplied by 100. It seems like the format() function does not divide by 100 anymore, so if I pass a value of 100 it will print 100 € (or whatever currency I set).

    Rolling back to version 6.4.0 the problem disappears

    opened by quintavallechristian 12
  • Laravel 7 custom cast

    Laravel 7 custom cast

    Following up @atymic's issue https://github.com/cknow/laravel-money/issues/48, this draft contains a possible candidate to cast values into Money by leveraging the new Laravel 7 feature.

    At this stage the cast can be defined in the following ways:

    protected $casts = [
        // cast money using the currency defined in the package config
        'money' => MoneyCast::class,
        // cast money using the defined currency
        'money' => MoneyCast::class . ':AUD',
        // cast money using the currency defined in the model attribute 'currency'
        'money' => MoneyCast::class . ':currency',
    ];
    

    In the example above, if the model attribute currency is null, the currency defined in the package configuration is used instead.

    Setting money can be done in several ways:

    $model->money = 10; // 10.00 USD or any other currency defined
    $model->money = 10.23; // 10.23 USD or any other currency defined
    $model->money = 'A$10'; // 10.00 AUD
    $model->money = '1,000.23'; // 1000.23 USD or any other currency defined
    $model->money = '10'; // 0.10 USD or any other currency defined
    $model->money = new Cknow\Money\Money('10', new Money\Currency('EUR')); // 10 EUR
    

    When we pass the model attribute holding the currency, such attribute is updated as well when setting money:

    $model->currency; // null
    $model->money = '€13';
    $model->currency; // 'EUR'
    $model->money->getAmount(); // '1300'
    

    Given that only the class introduced in this PR implements the new interface CastsAttributes, we may not need a major version bump as long as the new tests (to be added once we agree on the implementation) are excluded from builds that use versions of Illuminate packages prior to 7.

    Please let me know if you have any feedback or thoughts about the version bumping.

    opened by cerbero90 12
  • Config and Blade Extensions not working

    Config and Blade Extensions not working

    Hi,
    I correctly installed the package, but I have these errors: This is my config/money.php:

    'locale' => 'it_IT',
    'currency' => 'EUR',
    

    but I always get the dollar symbol if I use money(value) in blade file.

    Other than that, in blade file @money(value) does not work.

    opened by giacomok 11
  • Breaks package discovery on App Engine

    Breaks package discovery on App Engine

    Greetings!

    First, thanks for putting this together. It really cleans up MoneyPHP and makes a nice, uniform way of working with it in Laravel.

    After much debugging, I've narrowed down a deployment failure to App Engine as a failure of php artisan package:discover --ansi during the build process. If I remove this package, then the deployment works just fine.

    The best I can tell from the build failure output is this hunk:

    Step #1 - "builder": In Compiler.php line 36:
    Step #1 - "builder":                                       
    Step #1 - "builder":   Please provide a valid cache path.  
    

    Please keep in mind that this only occurs if this package is installed. If I remove the package, then this error does not occur. This makes me think that this package is attempting to access something from the cache before things are ready.

    This may have something to do with how App Engine introduces environment variables. In a normal Laravel setup the .env file provides the environment data and is loaded in, then accessible via the env. App Engine, conversely, has an app.yaml file that loads data as environment variables — rather than being loaded upfront. This still works, however, as the env function checks for environment variables as well.

    If I find anything further I'll be sure to add a comment.

    opened by JasonTheAdams 9
  • Update dependencies to Laravel 7

    Update dependencies to Laravel 7

    Bumps the dependencies to include Laravel ^7.0 variants.

    I've forked and been running this locally, and it appears there's no breaking changes affecting the package in Laravel 7.

    opened by markahesketh 8
  • Fixes integer and integerish floats behaviour

    Fixes integer and integerish floats behaviour

    This fixes issue #107

    The root cause for the worries was that the handling of integers and integerish values messes with the decimal casting. I fixed the parsing tests by forcing values directly into the database for the test and then retrieving (and casting) from there and forced handling of integers and integerish floats differently when casting into the database.

    opened by mvisd 6
  • Fail installing on Laravel 9

    Fail installing on Laravel 9

    Seems there's an issue when trying to use the package on Laravel 9

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires cknow/laravel-money ^1.0 -> satisfiable by cknow/laravel-money[v1.0.0, v1.0.1, v1.0.2, v1.0.3].
        - cknow/laravel-money[v1.0.0, ..., v1.0.3] require illuminate/support ~5.1 -> found illuminate/support[v5.1.1, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    
    You can also try re-running composer require with an explicit version constraint, e.g. "composer require cknow/laravel-money:*" to figure out if any version is installable, or "composer require cknow/laravel-money:^2.1" if you know which you need.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    ERROR: 2
    
    opened by ltdev22 5
  • Format functions doesn't read precision parameter

    Format functions doesn't read precision parameter

    The format() function doesn't get the actual precision parameter from the config file, here:

    $value = number_format($amount, 2, $decimals, $thousands);

    Changing the above line to:

    $value = number_format($amount, $this->currency->getPrecision(), $decimals, $thousands);

    That correctly reads the precision parameter, which is necessary for cents fraction and different subunit values.

    A nice addition would be to remove leading zeros when using precision bigger than 2, for instance, if precision is 4, showing 0,5555 is ok, but 0,5500 should still be trimmed to 0,55.

    bug 
    opened by fabiolrs 5
  • Fill the Currrency Field without checking

    Fill the Currrency Field without checking

    Dears,

    During my development i found that the currency fields doesn't get filled with new instances and i have to fill the currency manually

    i checked the code and it seems that it checks if the field exists in the attribute before filling which for new instances wouldn't be correct.

    so i don't think we need to do the check as it's already passed as a parameter.

    For anyone facing the same issue you can just initialize the currency field using attributes inside the model

    class Request extends Model
    {
        protected $attributes = [
            'currency' => '',
        ];
    }
    
    opened by A-Ghorab 4
  • Invalid argument in NumberFormatter()

    Invalid argument in NumberFormatter()

    Hi. After upgrading from v6 to v7 I got the following error:

        "class": "Money\\Exception\\UnknownCurrencyException",
        "message": "Cannot find currency 淠᎓翼",
        "code": 0,
        "file": "/var/app/test/vendor/moneyphp/money/src/Currencies/AggregateCurrencies.php:48",
        "trace": [
            "/var/app/test/vendor/moneyphp/money/src/Parser/IntlMoneyParser.php:56",
            "/var/app/test/vendor/moneyphp/money/src/Parser/AggregateMoneyParser.php:38",
            "/var/app/test/vendor/cknow/laravel-money/src/MoneyParserTrait.php:227",
            "/var/app/test/vendor/cknow/laravel-money/src/MoneyParserTrait.php:110",
            "/var/app/test/vendor/cknow/laravel-money/src/MoneyParserTrait.php:87",
            "/var/app/test/vendor/cknow/laravel-money/src/Casts/MoneyCast.php:62",
        ...
    

    This problem was caused by this change and reproduced if intl extension was built with old ICU (in my case it is 50.2). It is default version with PHP 8.1 on fresh AWS Amazon Linux 2. With ICU version 67.1 (Debian and PHP 8.1) there are no errors.

    $style argument in NumberFormatter() should be int. In v7 $style = NumberFormatter::CURRENCY || NumberFormatter::DECIMAL is equal to true and casts to 1 (it is equal to NumberFormatter::DECIMAL).

    The problem with NumberFormatter() can be reproduced on onlinephp.io. Try to execute code few times.

    Valid result in this case should be empty string.

    opened by Limman 0
  • Fixes usage of `ROUND_UP` and `ROUND_DOWN`

    Fixes usage of `ROUND_UP` and `ROUND_DOWN`

    Use parent dependency multiply and divide so we can cover the rounding.

    Convert non-int multipliers to strings since we can only send int or floats to the \Money\Money class

    Resolves #133

    opened by tiagocyberduck 0
  • Issue when forcing multiply and division to round the value using: ROUND_UP and ROUND_DOWN

    Issue when forcing multiply and division to round the value using: ROUND_UP and ROUND_DOWN

    Hi!

    After upgrading from a previous version our test automation started picking up rounding issues when multiplying and dividing values, only when using \Money\Money::ROUND_UP && \Money\Money::ROUND_DOWN, e.g.:

    // Calculation without rounding: 5321.27659574468085
    
    // Returns: 5321 as expected
    Money::GBP(2501)->divide(0.47);
    
    // Returning: 5321 when it should return 5322
    Money::GBP(2501)->divide(0.47, \Money\Money::ROUND_UP);
    

    After looking into the code of the package we are using the native php round function which does not have ROUND_UP or ROUND_DOWN, after investigating MoneyPHP dependency they have their own private round method which uses ceil and floor.

    I'm creating a PR for the fix, for your review.

    Issue caused by: https://github.com/cknow/laravel-money/pull/117

    Thank you!

    opened by tiagocyberduck 0
  • Apply the change suggestion from a deprecation warning

    Apply the change suggestion from a deprecation warning

    From the logs:

    WARN PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in vendor/cknow/laravel-money/src/BladeExtension.php on line 76.

    opened by AndreSchwarzer 1
  • Setting cast attribute example in readme is incorrect

    Setting cast attribute example in readme is incorrect

    In the readme file there is the following example when setting a cast attribute:

    $model->money = 10; // 10.00 USD or any other currency defined
    

    But setting $model->money = 10; seem to produce 0.10 USD on the latest version (v7.0.2).

    Not sure if it's the readme or the implementation that is incorrect.

    opened by andreasnij 0
  • [6.x] PHPDoc issue

    [6.x] PHPDoc issue

    Good morning, I'm writing cause I've the following issue. I've a project with installed this package. Let's suppose this code:

    use Money\Currency;
    
    $revenueA = new \Cknow\Money\Money(123, new Currency('EUR'));
    $revenueB = new \Cknow\Money\Money(123, new Currency('EUR'));
    
    $revenueTotal = $revenueA->add($revenueB);
    

    In my case PHPStorm highlight the last row showing this message: Expected parameter of type '\Money\Money', '\Cknow\Money\Money|null' provided. It expects that the parameter passed to the add method to be of type \Money\Money.

    It's annoying cause working with amounts the screen is full of warnings.

    Can you please help me about this? Thanks in advance.

    opened by riccardobosini 4
Releases(v7.0.2)
  • v7.0.2(Nov 9, 2022)

  • v7.0.1(Oct 31, 2022)

  • v7.0.0(Jun 17, 2022)

    Features

    • Add getISOCurrencies (https://github.com/cknow/laravel-money/pull/118)
    • Add rules currency and money (https://github.com/cknow/laravel-money/pull/119)

    Fixes

    • Fix divide and multiply (https://github.com/cknow/laravel-money/pull/117)
    • Fix PHPDoc typings (#121)

    ⚠ Breaking Changes

    Floating values ​​have a new parser

    v6.4.0

    money(2.50 * 100) = $2.50
    money(2.50 * 101) = $2.52
    

    v7.0.0

    money(2.50 * 100) = $250.00
    money(2.50 * 101) = $252.50
    

    Versions deleted

    The versions below had break changes and were removed. See https://github.com/cknow/laravel-money/issues/123

    • v6.5.0
    • v6.5.1
    Source code(tar.gz)
    Source code(zip)
  • v6.4.0(Apr 19, 2022)

    Features

    • Add option to force decimals on MoneyCast (https://github.com/cknow/laravel-money/pull/114)

    Fixes

    • Support nullable amount and currency
    • Fix parser when decimal part is .00 (https://github.com/cknow/laravel-money/pull/113)
    Source code(tar.gz)
    Source code(zip)
  • v6.3.0(Feb 14, 2022)

    Features

    • Support Laravel 9 (#104)

    Fixes

    • Fix amount nullable (#105)
    • [PHP 8.1] Avoid deprecation message for jsonSerialize() return type (#101)
    Source code(tar.gz)
    Source code(zip)
  • v6.2.0(Jan 6, 2022)

    Features

    • Support PHP 8.1 (#99)
    • Support moneyphp/money v4 (#91)
    • Add cast MoneyIntegerCast (#90)
    • Add cast MoneyStringCast (#90)
    • Add cast MoneyDecimalCast (#90)
    • Add new option defaultFormatter (#93)
    • Add new formatter CurrencySymbolMoneyFormatter (#94)
    • Make optional $currency parameter in helper function currency (#98)
    • Add currency validation helper (#100)

    Fixes

    • Fix currencies (#89)

    Changed

    • Deprecated Cknow\Money\MoneyCast
    Source code(tar.gz)
    Source code(zip)
  • v6.1.1(Sep 22, 2021)

  • v6.1.0(Nov 5, 2020)

  • v6.0.0(Sep 9, 2020)

  • v5.0.1(Jul 1, 2020)

  • v5.0.0(Jun 4, 2020)

    Fixes

    • Rename trait method getCurrency to getDefaultCurrency

    Features

    • Attribute Casting with Cknow\Money\MoneyCast
    • Custom currencies

    Breaking Changes

    • Drop support for Laravel 6
    • Use defaultCurrency instead of currency

    Thanks

    • @cerbero90
    • @sergotail
    Source code(tar.gz)
    Source code(zip)
  • v4.0.0(Mar 6, 2020)

  • v3.8.1(Mar 6, 2020)

  • v3.8.0(Sep 6, 2019)

  • v3.7.0(May 13, 2019)

  • v3.6.0(Apr 17, 2019)

  • v3.5.0(Feb 28, 2019)

  • v3.4.0(Dec 29, 2018)

    Features

    Money

    • Added aggregate static function Money::min
    • Added aggregate static function Money::max
    • Added aggregate static function Money::avg
    • Added aggregate static function Money::sum
    • Update add now accept variadic arguments
    • Update subtract now accept variadic arguments

    Helpers

    • Added money_min
    • Added money_max
    • Added money_avg
    • Added money_sum

    Directives

    • Added @money_min
    • Added @money_max
    • Added @money_avg
    • Added @money_sum
    Source code(tar.gz)
    Source code(zip)
  • v3.3.0(Dec 5, 2018)

    Features

    Parsers

    • Added parseByAggregate
    • Added parseByBitcoin
    • Added parseByIntl
    • Added parseByIntlLocalizedDecimal
    • Updated parse is alias to parseByIntl

    Formatters

    • Added formatByAggregate
    • Added formatByBitcoin
    • Added formatByIntl
    • Added formatByIntlLocalizedDecimal
    • Updated format is alias to formatByIntl

    Helpers

    • Added money_parse_by_bitcoin
    • Added money_parse_by_intl
    • Added money_parse_by_intl_localized_decimal

    Directives

    • Added @money_parse_by_bitcoin
    • Added @money_parse_by_intl
    • Added @money_parse_by_intl_localized_decimal
    Source code(tar.gz)
    Source code(zip)
  • v3.2.0(Sep 20, 2018)

    Features

    • Added Laravel 5.7 support
    • Added configuration file to preset locale and currency default
    • Added static methods getCurrency and setCurrency to use currency default
    • Update locale default to en_US
    • Update currency default to USD

    Enhancements

    • Added money factory
    • Update money helper to use currency default
    Source code(tar.gz)
    Source code(zip)
  • v3.1.0(Apr 2, 2018)

  • v3.0.0(Apr 2, 2018)

  • v2.4.0(Jan 19, 2018)

    Features

    • Update MoneyPHP 3.1
    • Added mod method on MoneyPHP 3.1
    • Added ratioOf method on MoneyPHP 3.1
    • Added formatted in json serialize
    • Added attributes method to custom json serialize
    Source code(tar.gz)
    Source code(zip)
  • v2.3.0(Nov 20, 2017)

    Features

    • Added style option on format function in money, NumberFormatter::CURRENCY is default

    Documentation

    • Described how to use formatByFormatter
    Source code(tar.gz)
    Source code(zip)
  • v2.2.0(Oct 14, 2017)

    Features

    • Added parse static method
    • Added parseByDecimal static method
    • Added parseByParser static method
    • Added helper money_parse
    • Added blade directive @money_parse

    Deprecated

    • Deprecated formatSimple instead use formatByDecimal
    Source code(tar.gz)
    Source code(zip)
  • v2.1.0(Sep 19, 2017)

  • v2.0.0(Sep 5, 2017)

Owner
ClickNow
Marketing Digital e Gamification
ClickNow
Laravel package to convert English numbers to Bangla number or Bangla text, Bangla month name and Bangla Money Format

Number to Bangla Number, Word or Month Name in Laravel | Get Wordpress Plugin Laravel package to convert English numbers to Bangla number or Bangla te

Md. Rakibul Islam 50 Dec 26, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.

What is laravel charts? Charts is a Laravel library used to create Charts using Chartisan. Chartisan does already have a PHP adapter. However, this li

Erik C. Forés 31 Dec 18, 2022
Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster.

Laravel Kickstart What is Laravel Kickstart? Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster. It com

Sam Rapaport 46 Oct 1, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 9 Dec 14, 2022
Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application.

Laravel Segment Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application. Installation You can install the pac

Octohook 13 May 16, 2022
Laravel Sanctum support for Laravel Lighthouse

Lighthouse Sanctum Add Laravel Sanctum support to Lighthouse Requirements Installation Usage Login Logout Register Email Verification Forgot Password

Daniël de Wit 43 Dec 21, 2022
Bring Laravel 8's cursor pagination to Laravel 6, 7

Laravel Cursor Paginate for laravel 6,7 Installation You can install the package via composer: composer require vanthao03596/laravel-cursor-paginate U

Pham Thao 9 Nov 10, 2022
A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

Install Install via composer. $ composer require olliecodes/laravel-etched-blade Once installed you'll want to publish the config. $ php artisan vendo

Ollie Codes 19 Jul 5, 2021
A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic! concepts like , Hijri Dates & Arabic strings and so on ..

Adnane Kadri 49 Jun 22, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
Laravel Jetstream is a beautifully designed application scaffolding for Laravel.

Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.

The Laravel Framework 3.5k Jan 8, 2023
Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex Translate Laravel Apps from a CSV File Laravel Larex lets you translate your whole Laravel application from a single CSV file. You can i

Luca Patera 68 Dec 12, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
A Laravel extension for using a laravel application on a multi domain setting

Laravel Multi Domain An extension for using Laravel in a multi domain setting Description This package allows a single Laravel installation to work wi

null 658 Jan 6, 2023
Example of using abrouter/abrouter-laravel-bridge in Laravel

ABRouter Laravel Example It's a example of using (ABRouter Laravel Client)[https://github.com/abrouter/abrouter-laravel-bridge] Set up locally First o

ABRouter 1 Oct 14, 2021
Laravel router extension to easily use Laravel's paginator without the query string

?? THIS PACKAGE HAS BEEN ABANDONED ?? We don't use this package anymore in our own projects and cannot justify the time needed to maintain it anymore.

Spatie 307 Sep 23, 2022
Laravel application project as Sheina Online Store backend to be built with Laravel and VueJS

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Boas Aditya Christian 1 Jan 11, 2022
Postgis extensions for laravel. Aims to make it easy to work with geometries from laravel models.

Laravel Wrapper for PostgreSQL's Geo-Extension Postgis Features Work with geometry classes instead of arrays. $model->myPoint = new Point(1,2); //lat

Max 340 Jan 6, 2023