Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
392 stars 137 forks source link

Live pull currency from yahoo #2

Closed spencerlim closed 10 years ago

spencerlim commented 10 years ago

How can i implement live pull instead of call the code every time?

@currency(12.00, 'USD')
Torann commented 10 years ago

A live pull for each currency conversion isn't really realistic. I designed this so that it could be setup as a cron job. That way it can automatically update itself.

Hope that helps answer your question :-)

spencerlim commented 10 years ago

Bro,

Can you please give me demo of how to pull through cron? I mean did you done with the way? Thx

Thanks Please do not hesitate to reply me, if any.

“Action before words”

Warm-est Regard Spencer Lim

Sent from iPhone

On 31 Dec, 2013, at 12:59 am, "Daniel Stainback" notifications@github.com wrote:

A live pull for each currency conversion isn't really realistic. I designed this so that it could be setup as a cron job. That way it can automatically update itself.

Hope that helps answer your question :-)

— Reply to this email directly or view it on GitHub.

Torann commented 10 years ago

This article seem to hit the highlights: http://maxoffsky.com/code-blog/practical-laravel-using-cron-jobs-in-laravel/

25 * * * * php /var/www/<siteName>/artisan currency:update