Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jakezatecky committed Aug 20, 2015
2 parents 6e0b217 + 4468397 commit 3f8d60f
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 7 deletions.
55 changes: 55 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
filter:
excluded_paths: [tests/*]

checks:
php:
code_rating: true
duplication: true
variable_existence: true
useless_calls: true
use_statement_alias_conflict: true
unused_variables: true
unused_properties: true
unused_parameters: true
unused_methods: true
unreachable_code: true
sql_injection_vulnerabilities: true
security_vulnerabilities: true
precedence_mistakes: true
precedence_in_conditions: true
parameter_non_unique: true
no_property_on_interface: true
no_non_implemented_abstract_methods: true
deprecated_code_usage: true
closure_use_not_conflicting: true
closure_use_modifiable: true
avoid_useless_overridden_methods: true
avoid_conflicting_incrementers: true
assignment_of_null_return: true
avoid_usage_of_logical_operators: true
ensure_lower_case_builtin_functions: true
foreach_traversable: true
function_in_camel_caps: true
instanceof_class_exists: true
lowercase_basic_constants: true
lowercase_php_keywords: true
missing_arguments: true
no_commented_out_code: true
no_duplicate_arguments: true
no_else_if_statements: true
no_space_between_concatenation_operator: true
no_space_inside_cast_operator: true
no_trailing_whitespace: true
no_underscore_prefix_in_properties: true
no_unnecessary_if: true
no_unnecessary_function_call_in_for_loop: true
non_commented_empty_catch_block: true
php5_style_constructor: true
parameters_in_camelcaps: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
require_scope_for_methods: true
require_scope_for_properties: true
spacing_around_conditional_operators: true
spacing_around_non_conditional_operators: true
spacing_of_function_arguments: true
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

before_script:
- composer self-update
- composer install
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 <Jake Zatecky>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# WorkEtcClient
# WORK[etc] PHP Client

[![Packagist](https://img.shields.io/packagist/v/jakezatecky/work-etc-client.svg)](https://packagist.org/packages/jakezatecky/work-etc-client)
[![Build Status](https://travis-ci.org/jakezatecky/work-etc-client-php.svg?branch=master)](https://travis-ci.org/jakezatecky/work-etc-client-php)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jakezatecky/work-etc-client-php/master/LICENSE.txt)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jakezatecky/work-etc-client-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jakezatecky/work-etc-client-php/?branch=master)

**WorkEtcClient** is a thin HTTP client to the WORK[etc] SOAP API. It handles
login authentication and simple invocations of the WORK[etc] operations.
Expand All @@ -10,9 +15,9 @@ your `composer.json`:

``` json
{
"require": {
"jakezatecky/work-etc-client-php": "~1.0.0"
}
"require": {
"jakezatecky/work-etc-client": "~1.0.0"
}
}
```

Expand All @@ -31,10 +36,10 @@ $password = 'yourpassword';
$api = \WorkEtcClient\WorkEtcClient::connect($domain, $email, $password);

// Invoke an operation without any parameters
$stageGroups = $we->invoke('GetProjectStageGroups');
$stageGroups = $api->invoke('GetProjectStageGroups');

// Invoke an operation with parameters
$projects = $we->invoke('FindProjects', [
$projects = $api->invoke('FindProjects', [
'keywords' => 'Install',
]);
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jakezatecky/work-etc-client-php",
"name": "jakezatecky/work-etc-client",
"description": "A thin HTTP client for WORK[etc]'s API.",
"type": "library",
"keywords": ["WORKetc", "API", "client"],
Expand Down

0 comments on commit 3f8d60f

Please sign in to comment.