Coder Social home page Coder Social logo

nkkollaw / zubr Goto Github PK

View Code? Open in Web Editor NEW
99.0 7.0 6.0 152 KB

Wrapper library to fix inconsistencies in PHP's core functions

License: MIT License

PHP 98.62% Shell 1.38%
php php-7 php-library php-functions functions-beautifier wrapper conventions

zubr's People

Contributors

brzuchal avatar ddziaduch avatar nkkollaw avatar radmen avatar tommica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zubr's Issues

No tests?

I know that this library may be considered "just" a wrapper. Yet the lack of tests disturbs me a little.

Should they be included?

Guidelines are incomplete

IMO, we need to set the project's scope/objectives, and guidelines on every issue.

I added what I was personally interested in in the README: parameter order, underscores, etc. Guidelines could be moved to a dedicated file or the wiki as that would keep things more organized.

What problems do we tackle? Function naming for sure, but what about inconsistent errors? There might be more things that we can "fix".

No name?

Although the namespace should IMHO be called PHP for clarity and readability, I think the project should have a somewhat recognizable name/repo name.

Even something like PHP-sane or PHP-wrapper.

Opinions..?

Fix parameter order

Parameters should follow the following rule:

Always 'subject', then 'keyword' (for example you'd say "search Google (%SUBJECT%) for %KEYWORD%").

That is, $haystack first, then $needle.

Workflow

To get to version 1.0, we have to add all functions that a default PHP installation comes with (we'll think about extensions in the future, perhaps via a plugin system).

The most comprehensive list I could find is this: http://php.net/manual/en/extensions.membership.php

We would have to support all functions under "Core" (http://php.net/manual/en/extensions.membership.php#extensions.membership.core), and "Bundled" (http://php.net/manual/en/extensions.membership.php#extensions.membership.bundled).

I'm adding each function as an issue, so that whoever implements it can reference the issue while committing or doing pull requests.

I think we should do 1 function per commit/request, referencing the issue.

Would this work in your opinion?

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.