Skip to content

Instantly share code, notes, and snippets.

View alariva's full-sized avatar
💚
Fimedi NET

Ariel Vallese alariva

💚
Fimedi NET
View GitHub Profile
@alariva
alariva / Inflect.php
Created November 28, 2019 11:48 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@alariva
alariva / RollbarConfigurationTest.php
Created December 14, 2018 16:54
Laravel test to make sure RollbarLogger can be instantiated
<?php
namespace Tests\Unit;
use Tests\TestCase;
/**
* @author Ariel Vallese <alariva@gmail.com>
*
* @version 1.0-2018-12-14
@alariva
alariva / CanReportToRollbar.php
Last active December 18, 2018 14:50
Check Rollbar service with beyondcode/laravel-self-diagnosis
<?php
// File: app/SelfDiagnosis/Checks/CanReportToRollbar.php
namespace App\SelfDiagnosis\Checks;
use BeyondCode\SelfDiagnosis\Checks\Check;
use Dotenv\Dotenv;
use Illuminate\Foundation\Bootstrap\LoadConfiguration;
use Rollbar\RollbarLogger;
@alariva
alariva / ChartRender.php
Last active July 2, 2017 23:22
Laravel ConsoleTVs/Charts adapter class for splitting script and html
<?php
/*
* A possible solution to
* https://github.com/ConsoleTVs/Charts/issues/196
* while keeping blade files clean
*
*/
namespace App\Utils\Charts;