Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backwards incompatible refactor and restructure, composer, namespace #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Jun 19, 2015

  1. Added .gitignore file to ignore PhpStorm project files.

    Cleaned up formatting of VoteSmart class.
    ozzyogkush committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    7fc55bf View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2015

  1. Refactored VoteSmart object, removed dependency on config.php.

    The major change here is that you can no longer query directly from the constructor. The constructor now takes in 2 parameters:
    
    1.) the output type, with a default of 'XML'
    2.) the location in the global $_ENV array where to check for the API token supplied by VoteSmart is stored, with a default of 'VOTESMART_API_KEY'
    
    You can also set these directly using the methods setOutputType(), setEnvKey() and setApiToken().
    ozzyogkush committed Jun 20, 2015
    Configuration menu
    Copy the full SHA
    c1e188c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f5bcb8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3315b9a View commit details
    Browse the repository at this point in the history
  4. Added basic JSON functionality. You can now pass in 'JSON' as a valid…

    … outputType. Updated the README to contain more useful information.
    ozzyogkush committed Jun 20, 2015
    Configuration menu
    Copy the full SHA
    b886346 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #1 from ozzyogkush/feature/remove-need-for-config-…

    …file
    
    Backwards incompatible refactor and restructure
    ozzyogkush committed Jun 20, 2015
    Configuration menu
    Copy the full SHA
    22596b4 View commit details
    Browse the repository at this point in the history
  6. Refactored VoteSmart class by renaming it Api, and giving it a namesp…

    …ace of VoteSmart.
    
    Moved Api class to src directory
    Created composer.json file and composer.lock files
    Updated .gitignore to ignore Composer created vendor directory
    ozzyogkush committed Jun 20, 2015
    Configuration menu
    Copy the full SHA
    43ddc91 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #2 from ozzyogkush/feature/setup-composer

    Set up as composer package, set up namespace and rename primary class
    ozzyogkush committed Jun 20, 2015
    Configuration menu
    Copy the full SHA
    dba32bc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    69bf2d0 View commit details
    Browse the repository at this point in the history