PHPackages                             shinoshi/nightmare-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shinoshi/nightmare-php

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

shinoshi/nightmare-php
======================

PHP wrapper for nightmareJS

0.9.5(8y ago)28.5k1MITPHPCI failing

Since Nov 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/shinoshi/nightmarePHP)[ Packagist](https://packagist.org/packages/shinoshi/nightmare-php)[ RSS](/packages/shinoshi-nightmare-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

NightmarePHP
============

[](#nightmarephp)

PHP wrapper for [NightmareJS](http://www.nightmarejs.org/)

Usage
-----

[](#usage)

Raw option (recommended):

```
use dioro\nightmarePHP\nightmarePHP;

$nightmare = new nightmarePHP();

$nightmare->rawInput("
const Nightmare = require(\"nightmare\");
const nightmare = Nightmare({ show: false });

nightmare
    .goto('https://www.reddit.com/r/news/')
    .wait('#siteTable > div:first-child .title > a')
    .evaluate(() => document.querySelector(\"#siteTable > div:first-child .title > a\").textContent)
.end()
    .then(console.log)
    .catch((error) => {console.error('Search failed:', error);});")
    ->run();

var_dump($nightmare->getResult()); #returns latest title of the /r/news subreddit

```

Predefined method option:

```
use dioro\nightmarePHP\nightmarePHP;

$nightmare = new nightmarePHP();

$nightmare->config("show: false");

$nightmare
->_goto('https://www.reddit.com/r/news/')
->wait('#siteTable > div:first-child .title > a')
->evaluate("() => document.querySelector(\"#siteTable > div:first-child .title > a\").textContent")
->end()
->then("console.log")
->_catch("(error) => {console.error('Search failed:', error);}")
->run();

var_dump($nightmare->getResult()); #returns latest title of the /r/news subreddit

```

Predefined method option may not include all up to date options that NightmareJS offers to which the documentation can be found their official [github repo](https://github.com/segmentio/nightmare)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

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 ~4 days

Total

4

Last Release

3095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c339fe65debd12d5b26c3f42a71177f5c43d9809619feada1ccecd52b29b146b?d=identicon)[luka-dev](/maintainers/luka-dev)

---

Top Contributors

[![dioro](https://avatars.githubusercontent.com/u/11578546?v=4)](https://github.com/dioro "dioro (27 commits)")

### Embed Badge

![Health badge](/badges/shinoshi-nightmare-php/health.svg)

```
[![Health](https://phpackages.com/badges/shinoshi-nightmare-php/health.svg)](https://phpackages.com/packages/shinoshi-nightmare-php)
```

###  Alternatives

[symfony/polyfill-php73

Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions

2.4k581.8M67](/packages/symfony-polyfill-php73)[laminas/laminas-code

Extensions to the PHP Reflection API, static code scanning, and code generation

1.9k185.4M172](/packages/laminas-laminas-code)[spatie/enum

PHP Enums

84529.1M68](/packages/spatie-enum)[woothee/woothee

Cross-language UserAgent classifier library, PHP implementation

108633.5k4](/packages/woothee-woothee)

PHPackages © 2026

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