Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 849cc23

Browse files
committed
Update readme file
1 parent 463e6f6 commit 849cc23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
[![License](https://poser.pugx.org/josh/laravel-phantomjs/license)](https://packagist.org/packages/josh/laravel-phantomjs)
77

88
# Laravel PhantomJs Client
9-
Using phantomjs client in laravel
9+
Using php-phantomjs client in laravel
1010

11-
[Full documentation](http://jonnnnyw.github.io/php-phantomjs/)
11+
[php-phantomjs Documentation](http://jonnnnyw.github.io/php-phantomjs/)
1212

1313
# Requirement
14-
* [laravel/framework ^5](https://github.com/laravel/laravel)
14+
* [laravel/framework ^6](https://github.com/laravel/laravel)
1515
* [jonnyw/php-phantomjs 4.*](https://github.com/jonnnnyw/php-phantomjs)
1616

1717
## Install
@@ -48,7 +48,7 @@ The following illustrates how to make a basic GET request and output the page co
4848
```php
4949
// Tells the client to wait for all resources before rendering
5050

51-
$request = \PhantomJs::get('http://phantomjs.org/');
51+
$request = \PhantomJs::get('https://www.google.com/');
5252

5353
\PhantomJs::isLazy()->send($request);
5454
```
@@ -57,7 +57,7 @@ $request = \PhantomJs::get('http://phantomjs.org/');
5757
// you can use Facade or app make function to use phantomjs
5858
// ex: app('phantomjs') or \PhantomJs
5959

60-
$request = \PhantomJs::get('http://phantomjs.org/');
60+
$request = \PhantomJs::get('https://www.google.com/');
6161

6262
$response = \PhantomJs::send($request);
6363

@@ -71,7 +71,7 @@ if($response->getStatus() === 200) {
7171
Saving a screen capture to local disk:
7272
```php
7373

74-
$request = \PhantomJs::createImage('http://phantomjs.org/', 'GET');
74+
$request = \PhantomJs::createImage('https://www.google.com/', 'GET');
7575

7676
$request->setOutputFile(public_path('file.jpg'));
7777

@@ -91,7 +91,7 @@ if($response->getStatus() === 200) {
9191
Outputting a page as PDF:
9292

9393
```php
94-
$request = \PhantomJs::createPdf('http://phantomjs.org/', 'GET');
94+
$request = \PhantomJs::createPdf('https://www.google.com/', 'GET');
9595
$request->setOutputFile(public_path('document.pdf'));
9696
$request->setFormat('A4');
9797
$request->setOrientation('landscape');

0 commit comments

Comments
 (0)