php.vbs is a resource that offers community-built VBScript alternatives to PHP functions.
Why on earth would you port php to vbs?
to see if we can
to learn VBScript
to help others learn VBScript
to profit from helpful functions like: strip_tags, strtotime, md5, strftime, number_format, wordwrap, vsprintf, and date, that are too high-level for VBScript.
PHP is a language with many high-level functions and while they’re not always implemented as consistently as we’d like (mimicking their underlying C parts), they do get many programming jobs done without the need for additional libraries or abstraction.
We recognize VB has beautiful language features, and we encourage you to learn them (never let php.vbs be an excuse not to!).
And so we see ourselves as this big resource and leave it up to the developer to decide what makes sense to take from it.
And what not.
Going by The McDonald’s Theory we have plently of functions online that aren’t perfect just yet. If you know better ways, just send us a pull request : )
Contributing
We use GitHub for collaboration. Comments are for remarks only. Please adhere to our coding standards before sending a pull request.
https://github.com/zeirishin/phpvbs
Licensing
php.vbs is licensed under the MIT licenses.
The MIT license allows you to use the library as you see fit (even in commercial projects) as long as you redistribute original the license with it. You’re not obligated to share your improvements, but obviously that would be greatly appreciated and ensure you won’t lose your changes after you upgrade.
Copyright (c) 2015 zeirishin (https://github.com/zeirishin)
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.