Code Monkey home page Code Monkey logo

cacher's Introduction

#Utility Module to pull from a datasource and cahce the results. The purpose is to make whatever consumes this app quicker and not reliant on a 3rd party load quite as much.

###Noteable Features

  1. Built completely in a TDD manner
  2. Loosely coupled and modular so it can be dropped in anywhere or extended to fit any projects needs.
  3. Accepts an interchangeable data source. ( CSV, Web Service, DataBase Call ect..)

####TDD Notes This project uses Guard. To use guard simply type:

  1. guard init phpunit: This makes an empty phpunit guardfile with some defaults.
  2. Then configure the guardfile to match your installation specifics. An example is below.
  3. invoke guard by typing guard init in the console.

The syntax of the guard file is:

guard 'phpunit', :cli => '--colors', :tests_path => 'test', :clear => true, :keep_failed => true, :all_after_pass => true do
  watch(%r{^.+Test\.php$})
  watch(%r{^src/classes/(.+)\.php$}) { |m| "test/#{m[1]}Test.php" }
end

In the above code the two watch expressions are what tell guard which directories contain the src files and test files. The php / tdd defacto naming convention is src for source files and test for test files. Hence the config above. The symbol :tests_path above tells guard where the tests are.

cacher's People

Contributors

peb7268 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.