![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
php-watcher
Advanced tools
Watch PHP files and execute a corresponding handler.
Node.js Version >= 8 (might work with older versions, but untested). You can find latest version 8 here. If you currently use an older version of Node and want to keep it, I recommend using NVM (Node Version Manager), which is a tool for managing multiple Node.js versions. You can grab its Windows version here (recommended: latest stable release) and its Mac/Linux version here.
npm install
npm start
Create a js
module and export a config object according to API options below. All options are merged with their defaults, so you can spare an option if its default is already covering your needs. Defaults:
module.exports = {
php: 'C:/php',
command: 'php/deploy.php',
watchDir: 'php/src',
watchOptions: {
ignored: /(^|[/\\])\../,
persistent: true
},
verbose: true
}
Then, pass it to php-watcher
, like so:
node ./node_modules/php-watcher/index.js --conf=watch.conf.js
Ideally, you can assign this command to npm
script, like so:
{
"scripts": {
"watch": "node ./node_modules/php-watcher/index.js --conf=watch.conf.js"
}
}
Then, use it:
npm run watch
php
String
C:/php
command
String
php/deploy.php
watchDir
String
php/src
watchOptions
Object
{
ignored: /(^|[/\\])\../,
persistent: true
}
verbose
Boolean
true
FAQs
Watch PHP files and execute a corresponding handler.
The npm package php-watcher receives a total of 0 weekly downloads. As such, php-watcher popularity was classified as not popular.
We found that php-watcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.