rtcamp / rt-lib Goto Github PK
View Code? Open in Web Editor NEWrt-lib is (intended to be) collection of reusable PHP classes useful for WordPress plugin/theme projects
License: Other
rt-lib is (intended to be) collection of reusable PHP classes useful for WordPress plugin/theme projects
License: Other
We need to use composer - https://rtcamp.com/tutorials/composer-wordpress/
It will be good to have every class as separate composer package in future.
https://travis-ci.org/rtCamp/rt-lib
If Travis supports PHP 5.5 test and WordPress beta releases (3.9 beta for example), it would be nice.
Ref : https://github.com/rtCamp/rt-lib/blob/develop/rt-user-groups/class-rt-user-group.php#L22
No need to use realpath(__DIR__.'/../').'/
because we can use relative path and __DIR__
introduced in php 5.4
, WordPress support php 5.2.4
- So it is throwing error for user who are on php 5.3
or older version
__DIR__
is actually equivalent to realpath(dirname(__FILE__))
, To ensure the DIR constant is defined for PHP 4.0.6 and newer use following snippet
(@__DIR__ == '__DIR__') && define('__DIR__', realpath(dirname(__FILE__)));
See: http://momentjs.com/
In many project we need relative dates.
I am not sure if this will make sense as a PHP class!
https://github.com/rtCamp/rt-lib/blob/master/wp-helpers.php#L27
Here the constant is defined without the check of defined()
which is resulting in a PHP Notice.
Some good examples here: http://stackoverflow.com/a/2193937/156336
Also https://github.com/willdurand/EmailReplyParser
We can polish our internal CRM library as well and make it available for reuse.
Mailbox
: Refrt-mailbox-functions.php
: Refsettings
. Those classes are not templates : RefFrom PHP 5 onwards, all objects are passed by reference, so &$this
is redundant. This is a common pattern with add_action/add_filter
calls (since the callback is an array), but should just the bare $this
instead. Read More
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.