Download the PHP package arefshojaei/spider without Composer

On this page you can find all versions of the php package arefshojaei/spider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spider

logo # ๐Ÿ•ท๏ธ Spider - PHP Web Crawler & HTML Parser A lightweight and powerful PHP web crawler inspired by jQuery-style DOM manipulation. Fetch web pages, parse HTML documents, search elements with CSS selectors, manipulate the DOM, and export modified pages with an elegant and simple API.

โœจ Features


๐Ÿ“ฅ Installation

Install with Composer

Clone from GitHub


๐Ÿš€ Quick Start

Fetch a page and extract its content:


๐Ÿ”Ž Finding Elements

Search DOM elements using CSS selectors.

Find a single element

Find multiple elements


๐Ÿ” Iterating Elements

Perform operations on element collections.

each()

Loop through every element:

map()

Transform elements:

filter()

Filter elements by a condition:


๐ŸŒณ DOM Traversing

Navigate and modify element relationships.

Parent element

Insert sibling elements

Insert child elements


๐Ÿงน Cleaning Elements

Remove content or complete elements.

Empty content

Remove element


๐Ÿ“„ Working with Content

Get text or HTML

Update content


๐Ÿท๏ธ Working with Attributes

Read attributes

Set attributes


๐ŸŽจ CSS Classes & IDs

Classes

IDs


๐Ÿ’พ Export HTML

Save the current DOM document to a file.


๐Ÿ’ก Example Use Cases

Spider can be used for:


๐Ÿ”ฅ Why Spider?

Spider brings the simplicity of jQuery-style DOM APIs into PHP.

Instead of dealing with complex DOMDocument operations, you can navigate and manipulate HTML documents using a clean and expressive syntax.

It is a great educational project for learning:


๐Ÿค Contributing

Contributions are welcome.

  1. Fork the repository

  2. Create a feature branch:

  3. Commit your changes:

  4. Push your branch:

  5. Open a Pull Request.

๐Ÿ‘จโ€๐Ÿ’ป Author

Aref Shojaei


โญ Show Your Support

If this project helps you understand web crawling, HTML parsing, and DOM manipulation, consider giving it a Star โญ on GitHub.

Your support motivates future improvements.


All versions of spider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arefshojaei/spider contains the following files

Loading the files please wait ...