Coder Social home page Coder Social logo

renoki-co / clusteer Goto Github PK

View Code? Open in Web Editor NEW
88.0 4.0 9.0 207 KB

Clusteer is a Puppeteer wrapper written for Laravel, with the super-power of parallelizing pages across multiple browser instances.

License: Apache License 2.0

PHP 79.56% JavaScript 19.03% Dockerfile 1.41%
php browser puppeteer chrome chromium puppeteer-cluster spatie

clusteer's Introduction

Clusteer

CI codecov StyleCI Latest Stable Version Total Downloads Monthly Downloads License

Clusteer is a Puppeteer wrapper written for PHP, with the super-power of parallelizing pages across multiple browser instances.

The package leverages thomasdondorf/puppeteer-cluster, a Node.js module that allows you to build standby Puppeteer browsers that will open up pages, making the process of using a browser a blazing-fast experience. โšก

๐Ÿค Supporting

If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with Github Sponsors. ๐Ÿ“ฆ

๐Ÿ“ƒ Documentation

The entire documentation is available on Gitbook ๐ŸŒ

๐Ÿ› Testing

vendor/bin/phpunit

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿ”’ Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

๐ŸŽ‰ Credits

clusteer's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar laravel-shift avatar octoper avatar rennokki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clusteer's Issues

Laravel Sail guide

Would it be possible to have documentation on how to set this up with Laravel Sail or possibly a demo repository?

Cannot install on 8.12.3

Hey, package looks interesting.

I went to install on the latest Laravel version, but seems like composer needs updated your end:

  Problem 1
    - Conclusion: remove laravel/framework v8.12.3
    - Conclusion: don't install laravel/framework v8.12.3
    - renoki-co/clusteer 1.2.0 requires laravel/framework ^6.2|^7.22.1 -> satisfiable by laravel/framework[6.x-dev, 7.x-dev].
    - renoki-co/clusteer 1.2.1 requires laravel/framework ^6.18.28|^7.22.1 -> satisfiable by laravel/framework[6.x-dev, 7.x-dev].
    - Can only install one of: laravel/framework[6.x-dev, v8.12.3].
    - Can only install one of: laravel/framework[7.x-dev, v8.12.3].
    - Installation request for laravel/framework (locked at v8.12.3, required as ^8.0) -> satisfiable by laravel/framework[v8.12.3].
    - Installation request for renoki-co/clusteer ^1.2 -> satisfiable by renoki-co/clusteer[1.2.0, 1.2.1].

Cheers!

Clusteer server failed with exit code 0

Running php artisan clusteer:serve always failed with exit code 0.

This is the output of php artisan clusteer:serve --show

PORT="'8080'" MAX_BROWSERS="'1'" CHROMIUM_PATH="'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'" $(which node) vendor/renoki-co/clusteer/server.js

and actually why there is always a single-quotation mark wrapping arguments?

PORT="'8080'"

The culprit is in

$value = escapeshellarg($value);

If i comment it out it here is the result

PORT="8080" MAX_BROWSERS="1" CHROMIUM_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" $(which node) vendor/renoki-co/clusteer/server.js

And it work normally.

Issues getting server to start on Mac locally

Hey,

Thanks for updating. I'm having some issues trying to get the php artisan clusteer:serve to start. I have installed the chrome binary and linked it directly to the correct path. Checked perms and also able to run the binary fine outside clusteer.

After starting, I eventually get:
Clusteer Server failed with exit code 0% .

I've also tested changing the port to 9515 which is what the binary loads externally, but no joy.

If I run php artisan clusteer:serve --debug it seems to stay up, but not getting any return with:

Exception when trying to get a screenshot:

file_get_contents(http://localhost:9515?until_idle=1&screenshot=1&quality=75&url=https%3A%2F%2Flaravel.com): failed to open stream: HTTP request failed!

Am I missing something?

Cheers!

Uncaught ReflectionException: Class config does not exist in ...

Hi!

I did everything according to the instructions, then I wrote a script with the ยซUsageยป example
When I try to run it, an error occurs:

PHP Fatal error:  Uncaught ReflectionException: Class config does not exist in /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Container/Container.php:873
Stack trace:

#0 /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(873): ReflectionClass->__construct()
#1 /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\Container\Container->build()
#2 /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\Container\Container->resolve()
#3 /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\Container\Container->make()
#4 /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(275): app()
#5 /var/www/html/img-gen2/project/vendor/renoki-co/clusteer/src/Clusteer.php(259): config()
#6 /var/www/html/img-gen2/project/vendor/renoki-co/clusteer/src/Clusteer.php(201):  in /var/www/html/img-gen2/project/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 875

Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.