Skip to content

Instantly share code, notes, and snippets.

View daylerees's full-sized avatar
🏠
Working from home

Dayle Rees daylerees

🏠
Working from home
View GitHub Profile

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

For Sale

Mac Book Pro

  • 15"
  • Late 2011 Model.
  • i7 SandyBridge CPU
  • Intel HD 2000 + Radeon HD 6850M
  • HD AntiGlare display.
  • 16GB RAM.

My Validation Base Class

I was asked how I deal with validation / create and update validation rulesets. Well here is one method I have used. Don't be afraid to build on top of what the framework has already given you. In my projects I use a base class for almost anything. You never know when you want your classes to inherit some common functionality. My BaseValidator actually has some pretty useful methods and properties in it.

<?php

namespace FooProject\Internal\Validators;

use FooProject\Internal\Sanitizers\BaseSanitizer;

Here's the base sanitizer:

<?php

namespace FooProject\Internal\Sanitizers;

abstract class BaseSanitizer
{
    /**
[![Logo](https://www.parkatmyhouse.com/media/img/home/large-logo.png)](http://parkatmyhouse.com)
# Now Hiring: ParkatmyHouse.com
At [ParkatmyHouse.com](http://parkatmyhouse.com) we are looking to expand our small team to include a number of new development positions ahead of a major project. Go ahead and take a look at the role descriptions. If the must haves don't quite fit, let us know anyway, you never know!
---
## Front-end Developer
**Must have**

Logo

Now Hiring: ParkatmyHouse.com

At ParkatmyHouse.com we are looking to expand our small team to include a number of new development positions ahead of a major project. Go ahead and take a look at the role descriptions. If the must haves don't quite fit, let us know anyway, you never know!


Front-end Developer

Must have

@daylerees
daylerees / 0_reuse_code.js
Created May 28, 2014 09:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am daylerees on github.
  • I am daylerees (https://keybase.io/daylerees) on keybase.
  • I have a public key ASBUCxXqufDRcoJ9dJS5aWcCxDYlgdXJT0xnGzxe4EDcBQo

To claim this, I am signing this object: