Download the PHP package illuminated/wikipedia-grabber without Composer
On this page you can find all versions of the php package illuminated/wikipedia-grabber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download illuminated/wikipedia-grabber
More information about illuminated/wikipedia-grabber
Files in illuminated/wikipedia-grabber
Package wikipedia-grabber
Short Description Wikipedia/MediaWiki Grabber for Laravel.
License MIT
Informations about the package wikipedia-grabber
Laravel Wikipedia Grabber
Wikipedia/MediaWiki Grabber for Laravel.
| Laravel | Wikipedia Grabber |
|---|---|
| 12.x | 12.x |
| 11.x | 11.x |
| 10.x | 10.x |
| 9.x | 9.x |
| 8.x | 8.x |
| 7.x | 7.x |
| 6.x | 6.x |
| 5.8.* | 5.8.* |
| 5.7.* | 5.7.* |
| 5.6.* | 5.6.* |
| 5.5.* | 5.5.* |
Table of contents
- Usage
- Output formats
- Available methods
- Advanced
- MediaWiki
- Modify the grabbed page
- Sponsors
- License
Usage
-
Install the package via Composer:
-
Publish the config:
- Grab a full page or preview:
Output formats
Here's the list of supported output formats:
plain(default)bootstrapbulma
Change the format in your config file, or specify it explicitly:
Available methods
When you call the page() or preview() method, you'll get an instance of the proper object.
There are numerous methods available on these objects, for example:
Advanced
MediaWiki
Wikipedia uses the MediaWiki API under the hood.
Thus, you can grab pages from any MediaWiki website:
Modify the grabbed page
Sometimes it might be useful to append additional sections to the grabbed page:
Alternatively, you can get the sections collection and change it as needed:
Sponsors
License
Laravel Wikipedia Grabber is open-sourced software licensed under the MIT license.
All versions of wikipedia-grabber with dependencies
guzzlehttp/guzzle Version ^7.8.2
guzzlehttp/psr7 Version ^2.4
illuminate/support Version ^12.0
