Giter Club home page Giter Club logo

virgool-api-php's Introduction


Please consider this library is under active development and, it's not ready to use in production.


Virgool PHP API

Packagist Version PHP from Packagist Travis (.com) branch Codecov Packagist

This is a PHP wrapper for the Virgool API.

Installation

This wrapper relies on HTTPlug, which defines how HTTP message should be sent and received. You can use any library to send HTTP messages that implements php-http/client-implementation.

composer require nekofar/virgool:^1.0@dev

To install with cURL you may run the following command:

composer require nekofar/virgool:^1.0@dev php-http/curl-client:^1.0

Usage

Use your username and password to access your own account.

use \Nekofar\Virgool\Client;

$config = Config::create('username', 'password');
$client = Client::create($config);

try {
    $user = $client->getUser();

    echo 'Name: ' . $user->name . PHP_EOL;
    echo 'User: ' . $user->username . PHP_EOL;

} catche (\Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

Contributing

The test suite is built using PHPUnit. Run the suite of unit tests by running the phpunit command or this composer script.

composer test

virgool-api-php's People

Contributors

mend-bolt-for-github[bot] avatar nekofar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

virgool-api-php's Issues

CVE-2019-11358 (Medium) detected in jquery-3.3.1.min.js

CVE-2019-11358 - Medium Severity Vulnerability

Vulnerable Library - jquery-3.3.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js

Path to vulnerable library: /virgool-api-php/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/jquery.min.js

Dependency Hierarchy:

  • โŒ jquery-3.3.1.min.js (Vulnerable Library)

Found in HEAD commit: 2b576bf04da6e2fc1f958cca7bf512cf2ef9004d

Vulnerability Details

jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source object contained an enumerable proto property, it could extend the native Object.prototype.

Publish Date: 2019-04-20

URL: CVE-2019-11358

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11358

Release Date: 2019-04-20

Fix Resolution: 3.4.0


Step up your Open Source Security Game with WhiteSource here

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.