Is Twig Safe?

Twig — Nerq Trust Score 53.2/100 (C- grade). Score based on 2 independent trust signals. with 9 known vulnerabilities Last analyzed: 2026-04-12

Twig is a PHP package with a Nerq Trust Score of 53.2/100 (C-), based on 3 independent data dimensions. Last analyzed: 2026-04-12 Security: 50/100. Popularity: 100/100. Data sourced from packagist.org, GitHub, and NVD. Last updated: 2026-04-12. Machine-readable data (JSON).

Is Twig safe?

Trust Score Breakdown — Twig has a Nerq Trust Score of 53.2/100 (C-). Measured across 2 independent trust signals (as of 2026-04-12).

Security Analysis → Twig Privacy Report →

What is Twig's trust score?

Twig has a Nerq Trust Score of 53.2/100, earning a C- grade. This score is based on 2 independently measured dimensions including security, maintenance, and community adoption.

Security
50
Popularity
100

What are the key security findings for Twig?

Twig's strongest signal is popularity at 100/100. 9 known vulnerabilities were identified.

Security score: 50/100 (moderate)
Popularity: 100/100 — 8,693 stars on PHP Packages

What is Twig and who maintains it?

Authortwig
CategoryPHP Packages
Stars8,693
SourceN/A

Similar Packagist by Trust Score

laravel/boost (62)spatie/simple-excel (62)spatie/laravel-health (62)aeon-php/calendar (62)phpstan/phpstan-nette (62)
See all safest Packagist →

Compare

Twig vs laravel/boostTwig vs spatie/simple-excelTwig vs spatie/laravel-health

Safety Guide: Twig

What is Twig?

Twig is a PHP package — Twig, the flexible, fast, and secure template language for PHP.

How to Verify Safety

Run composer audit. Check packagist.org.

You can also check the trust score via API: GET /v1/preflight?target=twig/twig

Key Safety Concerns for PHP package

When evaluating any PHP package, watch for: dependency vulnerabilities, PHP compatibility.

Measured Signals

Twig has a Nerq Trust Score of 53/100 (C-). This score is a composite of automated measurements of security, maintenance, community, and quality signals.

Key Takeaways

Detailed Score Analysis

DimensionScore
Security50/100
Maintenance50/100
Popularity100/100
Quality40/100
Community35/100

Based on 5 dimensions. Data from packagist.org, GitHub, and NVD.

What data does Twig collect?

Twig is a PHP package maintained by twig. It receives approximately 441,433,408 weekly downloads.

As a development package, Twig does not directly collect end-user personal data. However, applications built with it may collect data depending on implementation. Privacy score: 80/100.

Review the package's dependencies for potential supply chain risks. Run your package manager's audit command regularly.

Full analysis: Twig Privacy Report · Privacy review

Is Twig secure?

Security score: 50/100 (0-100, higher = fewer measured security issues).

Nerq monitors this entity against NVD, OSV.dev, and registry-specific vulnerability databases for ongoing security assessment.

Full analysis: Twig Security Report

How we calculated this score

Twig's trust score of 53.2/100 (C-) is computed from packagist.org, GitHub, and NVD. The score reflects 5 independent dimensions: security (50/100), maintenance (50/100), popularity (100/100), quality (40/100), community (35/100). Each dimension is weighted equally to produce the composite trust score.

Nerq analyzes over 7.5 million entities across 26 registries using the same methodology, enabling direct cross-entity comparison. Scores are updated continuously as new data becomes available.

Signals last measured on April 12, 2026. Data version: 1.0.

Full methodology documentation · Machine-readable data (JSON API)

Frequently Asked Questions

Is Twig Safe?
twig/twig with a Nerq Trust Score of 53.2/100 (C-). Strongest signal: popularity (100/100). Score based on Security (50/100), Popularity (100/100).
What is Twig's trust score?
twig/twig: 53.2/100 (C-). Score based on Security (50/100), Popularity (100/100). Scores update as new data becomes available. API: GET nerq.ai/v1/preflight?target=twig/twig
What are safer alternatives to Twig?
In the PHP Packages category, more PHP packages are being analyzed — check back soon. twig/twig scores 53.2/100.
Does Twig have known vulnerabilities?
Nerq checks Twig against NVD, OSV.dev, and registry-specific vulnerability databases. Current security score: 50/100. Run your package manager's audit command for the latest findings.
Is Twig actively maintained?
Twig maintenance score: N/A. Check the repository for recent commit activity and issue responsiveness.
API: /v1/preflight Trust Badge API Docs

See Also

Disclaimer: Nerq trust scores are automated measurements based on publicly available signals. They are not endorsements, verdicts, or guarantees of suitability. Always evaluate the signals against your own requirements.

We use cookies for analytics and caching. Privacy