PHPackages                             devontherun/simple-php-crawler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. devontherun/simple-php-crawler

ActiveLibrary

devontherun/simple-php-crawler
==============================

Search courses on Alura site

v1.1.1(5y ago)04GPL-3.0PHP

Since Sep 17Pushed 5y agoCompare

[ Source](https://github.com/filipe1309/simple-php-crawler)[ Packagist](https://packagist.org/packages/devontherun/simple-php-crawler)[ RSS](/packages/devontherun-simple-php-crawler/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Simple PHP Crawler
==================

[](#simple-php-crawler)

> Project based on Alura PHP Composer course

Start composer
--------------

[](#start-composer)

```
$ composer init

```

Install libs
------------

[](#install-libs)

```

$ composer require guzzlehttp/guzzle # search in https://packagist.org/

```

symfony/dom-crawler # in require section of composer.json

```
$ composer install # if composer.lock exists, install what is in composer.lock, otherwise install what is in composer.json

$ composer update # install and update what is in composer.json

$ composer require symfony/css-selector

$ php buscar-cursos.php

```

Update Composer autoload
------------------------

[](#update-composer-autoload)

```
$ composer dump-autoload # atualiza autoload

```

Unit tests (PHPUnit)
--------------------

[](#unit-tests-phpunit)

```
composer require --dev phpunit/phpunit

composer install --no-dev # to prod, download only require dependencies

$ ./vendor/bin/phpunit --version

$ ./vendor/bin/phpunit tests/TestBuscadorDeCursos.php

```

Verify code standards (PSR12) (PHP Code Sniffer)
------------------------------------------------

[](#verify-code-standards-psr12-php-code-sniffer)

[https://github.com/squizlabs/PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

```
$ composer require --dev squizlabs/php_codesniffer

$ vendor/bin/phpcs --version

$ vendor/bin/phpcs --standard=PSR12 src/

```

Syntax statical code analyzer (Phan)
------------------------------------

[](#syntax-statical-code-analyzer-phan)

```
$ composer require --dev phan/phan

$ vendor/bin/phan --version

$ vendor/bin/phan --allow-polyfill-parser src/Buscador.php

# depois de setar o .phan/config.php
$ vendor/bin/phan --allow-polyfill-parser

```

Custom Composer scripts (add manually in composer.json)
-------------------------------------------------------

[](#custom-composer-scripts-add-manually-in-composerjson)

```
composer test

composer cs

composer phan

# References the last 3 scripts in 1 script
composer check

# Lista all scripts available
composer list

```

Composer Versioning (Semantic Versioning)
-----------------------------------------

[](#composer-versioning-semantic-versioning)

```
git tag -a v1.0.0

git push origin --tags

```

Add a composer bin file (Cli interface)
---------------------------------------

[](#add-a-composer-bin-file-cli-interface)

```
$ vendor/bin/buscar-cursos

 git tag -a v1.1.0

 git push origin v1.1.0

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2068d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2081014?v=4)[Filipe Leuch Bonfim](/maintainers/filipe1309)[@filipe1309](https://github.com/filipe1309)

---

Top Contributors

[![filipe1309](https://avatars.githubusercontent.com/u/2081014?v=4)](https://github.com/filipe1309 "filipe1309 (32 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/devontherun-simple-php-crawler/health.svg)

```
[![Health](https://phpackages.com/badges/devontherun-simple-php-crawler/health.svg)](https://phpackages.com/packages/devontherun-simple-php-crawler)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
