Lithium 101

Lithium101 is an unofficial community resource for the Lithium PHP framework indexing articles, tutorials, code snippets and libraries.

Libraries

Tracking 261 plugins, categorised and sorted. If you are the plugin owner you can edit the status and category.

Snippets

So far there are 54 Lithium related snippets. It's super easy to add your gists as snippets on the site, if there is anything you think might be interesting or helpful take a minute to share it.

Latest Activity

1 day ago binhwpo created a comment about an issue in scharrier/li3_socialauth

Have error with Twitter adapter

@scharrier Thank you for looking into this. @minhna has requested your help again. We reply on this to complete a project. @minhna Anything else to provide here? Thanks. binhwpo
1 day ago vigege forked UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

2 days ago RStrydom started watching UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

Optimise assignTo call in DocumentSet::_set()

Calling method_exists() against $data when it is not an object triggers an autoloader lookup, which in turn calls realpath(). When initialising large data sets, this can bring a heavy IO burden. Since assignTo() is always called against an object instance, we can safely prevent a call to method_exists() if $data is not an object.

Optimise assignTo call in DocumentSet::_set()

Calling method_exists() against $data when it is not an object triggers an autoloader lookup, which in turn calls realpath(). When initialising large data sets, this can bring a heavy IO burden. Since assignTo() is always called against an object instance, we can safely prevent a call to method_exists() if $data is not an object.

Updated README and tests

- Updated `README.md` to follow API changes - Fixed bugs in `AuthRbacTest.php` (updated `$request->params` to enable proper testing) - Added `.travis.yml` to enable Travis CI

Better composer support

Make it easier to install and use lithium trough composer installation.
5 days ago capcomvertigo started watching UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

6 days ago IGitSylvia started watching UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

7 days ago vermontdevil started watching UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

Adding whitelist option to Model::validates()

This option is used when `Model::save()` is called with `whitelist` in order to skip validation rules on fields that do not exist in the whitelist. This feature has been discussed previously in PR #1118.
9 days ago davidpersson created a comment about an issue in UnionOfRAD/lithium

don't apply relation conditions when there is more than one hasMany relation.

@nateabele This fixes a regression I've introduced. davidpersson
9 days ago davidpersson created a comment about an issue in UnionOfRAD/lithium
10 days ago cquijano started watching eLod/li3_mailer

eLod/li3_mailer currently has:

10 days ago cquijano started watching tmaiaroto/li3_access

tmaiaroto/li3_access currently has:

10 days ago cquijano started watching nateabele/li3_resources

nateabele/li3_resources currently has:

10 days ago 2chg created a comment about an issue in UnionOfRAD/lithium

Add virtual fields

Is someone still working in this? I'm looking for this feature right now and unfortunately the gist link from two years ago is no longer valid. :( 2chg
10 days ago nateabele created a comment about an issue in UnionOfRAD/lithium

Adding whitelist option to Model::validates()

@davidpersson Seems good to me. nateabele
10 days ago farhadi opened a pull request in UnionOfRAD/lithium

Adding whitelist option to Model::validates()

This option is used when `Model::save()` is called with `whitelist` in order to skip validation rules on fields that do not exist in the whitelist. This feature has been discussed previously in PR #1118.
10 days ago gmercey opened an issue in UnionOfRAD/lithium

Render checkbox with checked attribut

Hi, I recently saw that the `Form` Helper renders checkbox with a `value` attribut instead of the `checked` excepted : <input type="hidden" name="opt_in" value="" /> <input type="checkbox" name="opt_in" id="UserOptIn" value="1" /> Instead of <input type="checkbox" name="opt_in" id="UserOptIn" checked /> It's not a problem for the data send by the form, but it is if you're try using css selector `input:checked` I don't know if it was done on purpose or not, so I just wondering if it can be part of an enhancement. Thanks
11 days ago davidpersson pushed to UnionOfRAD/li3_bot

Fix url for year.

12 days ago cquijano started watching UnionOfRAD/lithium

UnionOfRAD/lithium currently has:

13 days ago nateabele created a comment about an issue in UnionOfRAD/lithium

Adaptable enhancements

@davidpersson Weren't you going to make some change to the cache adapters so that they used direct invocation rather than returning a function? nateabele
14 days ago d1rk created a comment about an issue in UnionOfRAD/lithium

Adaptable enhancements

:+1: We also do have this use case quite often, for own adapters, that are used to simplify interfaces. Usually, we use one particular adapter more often. Would like to see this (because it is an addition and not breaking changes). d1rk