Giter VIP home page Giter VIP logo

Comments (10)

andresriancho avatar andresriancho commented on August 24, 2024

Ruby and Go implementations

We have a Ruby lib? Where? Maybe you're confused with the python one?

I didn't embed the vulndb/data as it seems to couple the sdk to the database (i.e., release an updated sdk each time the vulndb changes). But if embedding is the preference, let me know, so I can rectify.

It all depends on how developers on different languages are used to install/get/use their libs. I wrote the python implementation and included the DB just because it was easier for the end user (developer)

from data.

andresriancho avatar andresriancho commented on August 24, 2024

Give me 10min to review the PHP code

from data.

andresriancho avatar andresriancho commented on August 24, 2024

Review

git clone this repository.

Usually you put the name of the repo, so the users can copy+paste from the README.md file into a shell

https://github.com/vipsoft/vulndb-php/blob/master/composer.lock

Is this file really needed? If so, why do we have things like symphony in there? Is that a real requirement for the php-vulndb?

"name": "vipsoft/vulndb-php",

When migrating to the vulndb organization please change these

https://github.com/vipsoft/vulndb-php/blob/master/src/Service/ReferenceService.php#L55-L105

Seems that all the libs that consume the vulndb will have to implement something like that; maybe it's a good idea to have that data inside the vulndb repository to avoid duplication? @robocoder If you agree please create an issue so we can work on this later

Excellent

Your code looks amazing, very ordered, with tests, easy to read (even for a non-php dev like me). I would love to have this code as part of vulndb in github so people are able to easily find it.

TODO

  • @m0sth8 to review this code and confirm he also wants to have it as part of vulndb
  • @robocoder to add CircleCI (or any other CI system of his choice) to the build process of the php SDK. I want the test suite to be run each time a push is made to the repo. Also, in the README.md of the php library add a "build badge" that shows the result of that build and link to the build details.

(once the above is done)

from data.

robocoder avatar robocoder commented on August 24, 2024

Sorry, I meant python lib. Too much ruby sass on the brain lately.

Thanks for the quick feedback. I've made the requested changes. The badges will fix themselves after the move.

from data.

andresriancho avatar andresriancho commented on August 24, 2024

Ping @m0sth8

from data.

m0sth8 avatar m0sth8 commented on August 24, 2024

👍 The code seems cool for me =) Thank you @robocoder

from data.

andresriancho avatar andresriancho commented on August 24, 2024

@robocoder feel free to migrate your repository to https://github.com/vulndb/php-sdk and complete the steps I've outlined in my previous comment.

Once again, thanks for the contributions!

from data.

robocoder avatar robocoder commented on August 24, 2024

Pushed.

Please register your username on packagist.org and travis-ci.org to get respective tokens. Then under "Settings" | "Webhooks and Services", add "Packagist" and "Travis CI" services. Thanks.

from data.

andresriancho avatar andresriancho commented on August 24, 2024

@robocoder yesterday I received an email from github about permissions for travis CI, I've approved it.

screenshot from 2015-08-05 08 29 08

Not sure how to make the same process for packagist, it's the first time I'm using github for an organization instead of personal use, some things change.

If I receive a message from packagist.org (like I did for travis), I'll gladly accept/authorize access.

from data.

andresriancho avatar andresriancho commented on August 24, 2024

Also noted that there are No builds for this repository at travis?

from data.

Related Issues (20)

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.