These learning resources primarily focus on programming using Good Design Principles and Design Patterns
- There is an emphasis on learning using PHP, although most patterns are universal to every object orientated language.
| <?php | |
| use UnexpectedValueException; | |
| class DirectoryMounter | |
| { | |
| /** | |
| * The path to mount. | |
| * | |
| * @var string|null |
If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, open your browser’s dev tools and run the code below in the console:
Last confirmed working: Aug 2026 on version 7.107
var filename = 'FILENAME.wpress';
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| <?php | |
| // Usage: | |
| // Before | |
| @if ($errors->has('email')) | |
| <span>{{ $errors->first('email') }}</span> | |
| @endif | |
| // After: |
| <?php | |
| // Helper usage: | |
| // timeTravel(Carbon::parse('one year ago'), function () {...}); | |
| function timeTravel($target, $callback) { | |
| Illuminate\Support\Carbon::setTestNow($target); | |
| return tap($callback(), function () { | |
| Illuminate\Support\Carbon::setTestNow(); |
| [user] | |
| email = john.smith@gmail.com | |
| name = John Smith | |
| [push] | |
| default = simple | |
| [alias] | |
| co = checkout | |
| ci = commit | |
| czp = cz && git pu | |
| st = status |
| <?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; |