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 yesterday

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 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

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

3141d 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

[hostnet/form-handler-component

Hostnet form handler to provide an easier way of handling forms

12188.0k2](/packages/hostnet-form-handler-component)[sbine/simple-tenancy

Simple Laravel multi-tenancy in the same database

373.7k](/packages/sbine-simple-tenancy)[tsmgeek/exif-tool_php_stayopen

PHP ultra-fast library to allow accessing the ExifTool

313.7k](/packages/tsmgeek-exif-tool-php-stayopen)

PHPackages © 2026

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