Integrating with Laravel, Phirehose just hangs and never does anything

125 views
Skip to first unread message

danielc...@gmail.com

unread,
Jun 15, 2015, 12:26:00 PM6/15/15
to phireho...@googlegroups.com
Hello!

I successfully ran the library in terminal without any problems, but when I tried to use it with Laravel, I ran into two errors.

1. Undefined property: App\Library\FilterTrackConsumer::$lang

When I didn't add the `$sc->setLang('en')` attribute, it wouldn't work and would throw the above error.

2. It just hangs up when I try to run the command in the browser.

I required Phirehose with composer, and I'm using them in my classes. Does anyone have any ideas how I can debug this? Again, it's just hanging without doing anything.

Darren Cook

unread,
Jun 15, 2015, 1:33:35 PM6/15/15
to phireho...@googlegroups.com
> I successfully ran the library in terminal without any problems, but when I
> tried to use it with Laravel, ...
> It just hangs up when I try to run the command in the browser.

Phirehose is not to be run from the browser. (Twitter will quickly ban
you for reaching the re-connect limit.)

Instead run Phirehose as a long-running background process, writing the
tweets of interest to some kind of database, then have your Laravel
pages poll that DB.

Darren


--
Darren Cook, Software Researcher/Developer
My new book: Data Push Apps with HTML5 SSE
Published by O'Reilly: (ask me for a discount code!)
http://shop.oreilly.com/product/0636920030928.do
Also on Amazon and at all good booksellers!

m...@hellofresh.com

unread,
Jun 23, 2015, 5:45:17 AM6/23/15
to phireho...@googlegroups.com, danielc...@gmail.com
You should create a custom laravel artisan command and run it in CLI.
Reply all
Reply to author
Forward
0 new messages