PHPackages                             tusktsk/tusktsk - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tusktsk/tusktsk

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tusktsk/tusktsk
===============

🥜 TuskTsk Enhanced - The Freedom Configuration Language for PHP

v2.0.3(10mo ago)05proprietaryC#PHP &gt;=8.1CI failing

Since Jul 21Pushed 10mo agoCompare

[ Source](https://github.com/cyber-boost/tusktsk)[ Packagist](https://packagist.org/packages/tusktsk/tusktsk)[ Docs](https://tuskt.sk)[ RSS](/packages/tusktsk-tusktsk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (16)Used By (0)

[![SVG 1](svg/git-svg/tusk-logo.svg)](svg/git-svg/tusk-logo.svg)[![SVG 2](svg/git-svg/tsk-logo.svg)](svg/git-svg/tsk-logo.svg)

---

**TuskLang: The Configuration Language That Has a Heartbeat**

---

[![Version](https://camo.githubusercontent.com/9c3df200e81dc4015afeb530c8d25c328995e664ff37896954a71735791b4f0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63796265722d626f6f73742f7475736b74736b3f7374796c653d666c61742d737175617265)](https://github.com/cyber-boost/tusktsk/releases)[![License: BBL](https://camo.githubusercontent.com/42be42d33423126d224e955574fbc69bf8b2ec70f67df305771a37104b5125ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d42424c2d79656c6c6f772e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Website](https://camo.githubusercontent.com/91f075ed770073ba59ecc080f81a89e8c6e8e49a31ae099af511cc25195c4326/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776562736974652d7475736b742e736b2d626c75653f7374796c653d666c61742d737175617265)](https://tuskt.sk)

> **Configuration with a Heartbeat** - The only configuration language that adapts to YOUR preferred syntax

**Tired of being forced into rigid configuration formats?** TuskLang breaks the rules. Use `[]`, `{}`, or `` syntax - your choice. Query databases directly in config files. Execute functions with @ operators. Cross-reference between files. All while maintaining the simplicity you expect from a config language.

[![SVG 3](svg/git-svg/architecture.svg)](svg/git-svg/architecture.svg)

---

🏗️ **Architecture Overview**
----------------------------

[](#️-architecture-overview)

```
┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   .tsk Files    │───▶│   TuskLang SDK   │───▶│  Your App/API   │
│                 │    │                  │    │                 │
│ • peanu.tsk     │    │ • Parser         │    │ • Type Safety   │
│ • secrets.tsk   │    │ • @ Operators    │    │ • Hot Reload    │
│ • features.tsk  │    │ • FUJSEN Engine  │    │ • Validation    │
└─────────────────┘    └──────────────────┘    └─────────────────┘
         │                       │                       │
         │              ┌────────▼────────┐              │
         │              │   Integrations  │              │
         │              │                 │              │
         └──────────────│ • Databases     │──────────────┘
                        │ • APIs          │
                        │ • File System   │
                        │ • Environment   │
                        └─────────────────┘

```

---

[![SVG 4](svg/og_simple_syntax.svg)](svg/og_simple_syntax.svg)

⚡ **Try It Right Now** (30 seconds)
-----------------------------------

[](#-try-it-right-now-30-seconds)

**🚀 One-Line Install Magic**

```
# Pick your poison:
curl -sSL php.tuskt.sk | bash        # PHP
curl -sSL js.tuskt.sk | bash         # JavaScript/Node.js
curl -sSL python.tuskt.sk | bash     # Python
curl -sSL go.tuskt.sk | bash         # Go
curl -sSL rust.tuskt.sk | bash       # Rust
curl -sSL java.tuskt.sk | bash       # Java
curl -sSL csharp.tuskt.sk | bash     # C#
curl -sSL ruby.tuskt.sk | bash       # Ruby
```

**📦 Direct Downloads**

```
wget php.tuskt.sk/dist/latest.tar.gz
wget js.tuskt.sk/dist/latest.tar.gz
wget python.tuskt.sk/dist/latest.tar.gz
wget go.tuskt.sk/dist/latest.tar.gz
wget rust.tuskt.sk/dist/latest.tar.gz
wget java.tuskt.sk/dist/latest.tar.gz
wget csharp.tuskt.sk/dist/latest.tar.gz
wget ruby.tuskt.sk/dist/latest.tar.gz

# Then extract and install
tar -xzf latest.tar.gz && ./install.sh
```

**🎛️ Custom Install Wizard**
→ **[init.tuskt.sk](https://init.tuskt.sk)** ← Beautiful web installer

---

[![SVG 5](svg/git-svg/operators.svg)](svg/git-svg/operators.svg)

⚡ **Quick Start Examples**
--------------------------

[](#-quick-start-examples)

### **1. Basic Configuration with .pnt Compilation**

[](#1-basic-configuration-with-pnt-compilation)

```
# config.tsk - Write in your preferred syntax
[app]
name: "TuskLang  Demo"
version: @env("VERSION", ".0")

database {
    host: @env("DB_HOST", "localhost")
    port: 5432
    max_connections: @query("SELECT optimal_connections FROM metrics")
}

cache >
    driver: "redis"
    ttl: @env("NODE_ENV") == "production" ? "1h" : "5m"
<

```

```
# Compile to binary for production
tsk binary compile config.tsk

# Your app loads 85% faster!
```

### **2. Database-Driven Configuration**

[](#2-database-driven-configuration)

[![SVG 6](svg/git-svg/realtime.svg)](svg/git-svg/realtime.svg)

```
# Real-time configuration that adapts to your data
[features]
enabled: @query("SELECT feature_name FROM features WHERE active = 1")
user_limit: @query("SELECT max_users FROM plan WHERE id = ?", [plan_id])

[scaling]
current_load: @query("SELECT AVG(cpu) FROM metrics WHERE time > NOW() - '5m'")
instances: current_load > 80 ? 10 : 5

```

### **3. Cross-File Communication**

[](#3-cross-file-communication)

[![SVG 7](svg/git-svg/og_cross_file_detailed.svg)](svg/git-svg/og_cross_file_detailed.svg)

```
# peanut.tsk - Global configuration hub
globals {
    api_version: "v2"
    company: "TuskLang Corp"
    region: @env("AWS_REGION", "us-east-1")
}

# api.tsk - References global config
endpoint: @peanut.get("globals.api_version") + "/users"
region: @peanut.get("globals.region")

```

---

💡 **Revolutionary Features**
----------------------------

[](#-revolutionary-features)

### **@ Operators - The Secret Sauce**

[](#-operators---the-secret-sauce)

[![SVG 8](svg/git-svg/readme-new/operators-secret-sauce.svg)](svg/git-svg/readme-new/operators-secret-sauce.svg)

```
# Every @ operator now optimized for .pnt binary format
config: @file("settings.pnt")          # Load binary configs
users: @query("SELECT * FROM users")   # Database queries
api_key: @vault("secret/api/key")     # Secure secrets
cache: @redis("app:cache:main")       # Redis integration
status: @http("GET", "/health")       # HTTP requests
ml_result: @ai("classify", data)      # AI/ML integration

```

### **Executable Configuration (FUJSEN)**

[](#executable-configuration-fujsen)

[![SVG 9](svg/git-svg/readme-new/executable-configuration-fujsen.svg)](svg/git-svg/readme-new/executable-configuration-fujsen.svg)

```
[validation]
email_validator: """
function validate(email) {
    const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
    return regex.test(email);
}
"""

[processing]
data_transformer: """
function transform(data) {
    return data.map(item => ({
        ...item,
        timestamp: new Date().toISOString(),
        processed: true
    }));
}
"""

```

---

**Why Developers Are Switching to TuskLang**
--------------------------------------------

[](#why-developers-are-switching-to-tusklang)

### **"Finally, a config language that doesn't treat me like a child"**

[](#finally-a-config-language-that-doesnt-treat-me-like-a-child)

### **"Cut our configuration complexity by 60% while adding database integration"**

[](#cut-our-configuration-complexity-by-60-while-adding-database-integration)

### **"The syntax flexibility means our entire team can use their preferred style"**

[](#the-syntax-flexibility-means-our-entire-team-can-use-their-preferred-style)

### **"TuskLang saved my sanity - no more YAML indentation hell"**

[](#tusklang-saved-my-sanity---no-more-yaml-indentation-hell)

### **"Database queries in config files? GENIUS. Why didn't anyone think of this before?"**

[](#database-queries-in-config-files-genius-why-didnt-anyone-think-of-this-before)

### **"The @ operators are pure magic - my configs are now actually intelligent"**

[](#the--operators-are-pure-magic---my-configs-are-now-actually-intelligent)

🔥🔥🔥 **ENV and JSON belong in the fiery pits of hell** 🔥🔥🔥

---

### **🛠️ Full CLI Integration**

[](#️-full-cli-integration)

Every SDK now includes a powerful CLI with 50+ commands:

```
# Database Operations
tsk db status                  # Database connection status
tsk db migrate                 # Run pending migrations
tsk db rollback --steps 1      # Rollback migrations
tsk db backup production       # Backup database
tsk db restore backup.sql      # Restore from backup
tsk db console                 # Interactive SQL console

# Development Tools
tsk serve --hot-reload         # Dev server with hot reload
tsk compile --watch            # Watch mode compilation
tsk lint config.tsk           # Lint configuration
tsk format --fix              # Auto-format .tsk files

# AI Integration
tsk ai analyze                # Analyze config for issues
tsk ai optimize              # Get optimization suggestions
tsk ai security              # Security vulnerability scan
tsk ai explain "query"       # Explain complex configs
tsk ai generate schema       # Generate from description

# Cache Management
tsk cache clear all        # Clear all caches
tsk cache warm api         # Pre-warm API cache
tsk cache status           # View cache statistics

# Service Control
tsk services start all     # Start all services
tsk services health        # Health check
tsk services restart api   # Restart specific service

#Binary Operations
tsk binary compile *.tsk       # Compile all .tsk to .pnt
tsk binary validate file.pnt   # Validate binary integrity
tsk binary info file.pnt       # Show binary metadata
tsk binary benchmark           # Performance comparison
```

### **⚡ Universal .pnt Binary Format**

[](#-universal-pnt-binary-format)

```
# Compile your .tsk files to .pnt for 85% performance boost
tsk binary compile config.tsk    # Creates config.pnt
tsk binary execute config.pnt    # Lightning fast execution
tsk binary benchmark             # See the speed difference
```

**Performance Gains:**

LanguageText ParsingBinary (.pnt)ImprovementRust432K/sec800K/sec**85%** ⚡Go270K/sec500K/sec**85%** ⚡C#162K/sec300K/sec**85%** ⚡Java135K/sec250K/sec**85%** ⚡JavaScript108K/sec200K/sec**85%** ⚡---

[![SVG 10](svg/git-svg/competition.svg)](svg/git-svg/competition.svg)

🏆 **TuskLang vs The Others**
----------------------------

[](#-tusklang-vs-the-others)

FeatureTuskLangYAMLJSONTOMLHCL**Syntax Flexibility**✅❌❌❌❌**Database Queries**✅❌❌❌❌**Cross-File Communication**✅❌❌❌❌**Executable Functions**✅❌❌❌❌**Environment Variables**✅🔶🔶🔶✅**Comments**✅✅❌✅✅**Type Safety**✅🔶🔶✅✅**Learning Curve**🟢🟢🟢🟢🟡---

!\[SVG 11\]

📦 **Installation Details**
--------------------------

[](#-installation-details)

### **Recommended: Official Installers**

[](#recommended-official-installers)

Each language has its own optimized installer at \[lang\].tuskt.sk:

**🐘 PHP Installation**```
# Method 1: Quick install (recommended)
curl -sSL php.tuskt.sk | bash

# Method 2: Direct download
wget https://php.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select PHP

# What the installer does:
# ✓ Downloads latest PHP SDK with .pnt support
# ✓ Installs CLI tools globally
# ✓ Sets up Composer autoloading
# ✓ Configures php.ini for optimal performance
# ✓ Creates /usr/local/bin/tsk symlink

# Verify installation
tsk --version
tsk doctor  # System compatibility check
```

**🟨 JavaScript/Node.js Installation**```
# Method 1: Quick install (recommended)
curl -sSL js.tuskt.sk | bash

# Method 2: Direct download
wget https://js.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select JavaScript

# What the installer does:
# ✓ Installs via npm with native bindings
# ✓ Sets up TypeScript definitions
# ✓ Configures package.json scripts
# ✓ Installs CLI globally
# ✓ Optional: Sets up VS Code integration

# Verify installation
tsk --version
npm list -g tusklang
```

**🐍 Python Installation**```
# Method 1: Quick install (recommended)
curl -sSL python.tuskt.sk | bash

# Method 2: Direct download
wget https://python.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Python

# What the installer does:
# ✓ Creates virtual environment
# ✓ Installs with C extensions for .pnt
# ✓ Sets up CLI in PATH
# ✓ Configures Python path
# ✓ Optional: Jupyter notebook support

# Verify installation
tsk --version
python -c "import tusklang; print(tusklang.__version__)"
```

**🐹 Go Installation**```
# Method 1: Quick install (recommended)
curl -sSL go.tuskt.sk | bash

# Method 2: Direct download
wget https://go.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Go

# What the installer does:
# ✓ Downloads pre-compiled binaries
# ✓ Sets up Go modules properly
# ✓ Configures GOPATH if needed
# ✓ Installs CLI to $GOBIN
# ✓ Optional: Sets up Go toolchain integration

# Verify installation
tsk --version
go version -m $(which tsk)
```

**🦀 Rust Installation**```
# Method 1: Quick install (recommended)
curl -sSL rust.tuskt.sk | bash

# Method 2: Direct download
wget https://rust.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Rust

# What the installer does:
# ✓ Downloads pre-compiled Rust binaries
# ✓ Sets up Cargo registry configuration
# ✓ Installs to ~/.cargo/bin
# ✓ Configures PATH for Cargo binaries
# ✓ Optional: Sets up WASM targets

# Verify installation
tsk --version
cargo --version
```

**☕ Java Installation**```
# Method 1: Quick install (recommended)
curl -sSL java.tuskt.sk | bash

# Method 2: Direct download
wget https://java.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Java

# What the installer does:
# ✓ Downloads JAR and native libraries
# ✓ Sets up Maven/Gradle repositories
# ✓ Configures CLASSPATH
# ✓ Creates shell wrapper script
# ✓ Optional: Android SDK integration

# Verify installation
tsk --version
java -cp "$(tsk --classpath)" org.tusklang.Version
```

**🔷 C#/.NET Installation**```
# Method 1: Quick install (recommended)
curl -sSL csharp.tuskt.sk | bash

# Method 2: Direct download
wget https://csharp.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select C#

# What the installer does:
# ✓ Downloads .NET assemblies
# ✓ Sets up NuGet package sources
# ✓ Configures global tools
# ✓ Creates dotnet tool manifest
# ✓ Optional: Visual Studio integration

# Verify installation
tsk --version
dotnet --info
```

**💎 Ruby Installation**```
# Method 1: Quick install (recommended)
curl -sSL ruby.tuskt.sk | bash

# Method 2: Direct download
wget https://ruby.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Ruby

# What the installer does:
# ✓ Downloads Ruby gem and native extensions
# ✓ Sets up Bundler configuration
# ✓ Configures gem sources
# ✓ Installs CLI as system gem
# ✓ Optional: Rails generator integration

# Verify installation
tsk --version
gem list tusklang
```

**🐚 Bash/Shell Installation**```
# Method 1: Quick install (recommended)
curl -sSL bash.tuskt.sk | bash

# Method 2: Direct download
wget https://bash.tuskt.sk/dist/latest.tar.gz
tar -xzf latest.tar.gz && ./install.sh

# Method 3: Custom install wizard
# Visit https://init.tuskt.sk and select Bash

# What the installer does:
# ✓ Downloads pure Bash implementation
# ✓ Sets up shell functions and aliases
# ✓ Configures PATH and completion
# ✓ Creates portable script bundle
# ✓ POSIX compliance verification

# Verify installation
tsk --version
which tsk
```

### **🎛️ Custom Install Wizard**

[](#️-custom-install-wizard)

**[init.tuskt.sk](https://init.tuskt.sk)** - Beautiful web installer with:

- ✅ Language detection
- ✅ Environment analysis
- ✅ Custom configuration options
- ✅ Download verification
- ✅ Step-by-step guidance

---

[![SVG 12](svg/git-svg/og/og_readme_intelligent_infrastructure.svg)](svg/git-svg/og/og_readme_intelligent_infrastructure.svg)

---

🎯 **What Makes TuskLang Revolutionary**
---------------------------------------

[](#-what-makes-tusklang-revolutionary)

### **🔥 Configuration Files That Actually DO Things**

[](#-configuration-files-that-actually-do-things)

Forget static configuration. TuskLang configs are **alive**, **intelligent**, and **connected** to your entire infrastructure:

```
# This isn't just configuration - it's INTELLIGENT INFRASTRUCTURE
app_name: "TuskLang Production"
environment: @env("NODE_ENV", "development")

# Real-time auto-scaling based on actual metrics
scaling {
    current_cpu: @query("SELECT AVG(cpu_percent) FROM metrics WHERE timestamp > NOW() - INTERVAL 5 MINUTE")
    current_memory: @query("SELECT AVG(memory_percent) FROM metrics WHERE timestamp > NOW() - INTERVAL 5 MINUTE")

    # Intelligent decisions based on real data
    needed_workers: current_cpu > 80 || current_memory > 85 ? 10 : 5
    scale_up_trigger: current_cpu > 90
}

# Dynamic pricing based on inventory and demand
pricing {
    base_price: 99.99
    current_stock: @query("SELECT quantity FROM inventory WHERE sku = 'PRODUCT_001'")
    demand_factor: @query("SELECT COUNT(*) / 100.0 FROM page_views WHERE product_id = 'PRODUCT_001' AND timestamp > NOW() - INTERVAL 1 HOUR")

    # Smart pricing algorithm
    final_price: base_price * (current_stock < 10 ? 1.5 : 1.0) * (1.0 + demand_factor)
}

# Feature flags with A/B testing and machine learning
features {
    # Database-driven feature flags
    new_checkout: @query("SELECT enabled FROM feature_flags WHERE name = 'new_checkout_v2'")

    # ML-optimized features that learn from user behavior
    recommendation_engine: @learn("best_recommendation_algorithm", "collaborative_filtering")
    ui_theme: @learn("optimal_ui_theme", "dark")

    # Cached expensive computations
    user_segments: @cache("10m", @query("SELECT user_id, segment FROM user_segmentation"))
}

# Performance monitoring and alerting
monitoring {
    error_rate: @metrics("error_rate_5m", 0.01)
    response_time: @metrics("avg_response_time_ms", 250)

    # Auto-alert when things go wrong
    alert_trigger: error_rate > 0.05 || response_time > 1000

    # Self-healing configuration
    cache_ttl: response_time > 500 ? "1m" : "5m"
    rate_limit: error_rate > 0.03 ? 50 : 100
}

```

**🤯 Your configuration files can now:**

- Query databases in real-time
- Learn from user behavior with ML
- Auto-scale based on metrics
- Make intelligent decisions
- Cache expensive operations
- Monitor performance
- Trigger alerts
- Self-heal when problems occur

---

[![SVG 13](svg/git-svg/sin-tax.svg)](svg/git-svg/sin-tax.svg)

💡 **Game-Changing Features**
----------------------------

[](#-game-changing-features)

### **🎛️ Syntax Freedom**

[](#️-syntax-freedom)

```
# Traditional INI-style
[database]
host: "localhost"

# JSON-like objects
server {
    port: 8080
    workers: 4
}

# XML-inspired
cache >
    driver: "redis"
    ttl: "5m"
<

```

\###2 [![SVG 14](svg/git-svg/og/og_readme_killer_feature.svg)](svg/git-svg/og/og_readme_killer_feature.svg)

### \*\*🗃️ Database Queries in Config \*\*

[](#️-database-queries-in-config-)

```
# Query your database directly - this changes EVERYTHING!
user_limit: @query("SELECT max_users FROM plans WHERE active = 1")
feature_flags: @query("SELECT name, enabled FROM features WHERE user_id = ?", [user_id])
cache_size: @query("SELECT value FROM settings WHERE key = 'cache_size'")

# Real-time pricing based on inventory
product_price: @query("SELECT price * (CASE WHEN stock < 10 THEN 1.5 ELSE 1.0 END) FROM products WHERE sku = ?", ["TSK-001"])

# Auto-scaling based on current load
worker_count: @query("SELECT CEIL(AVG(cpu_usage) / 20) FROM server_metrics WHERE timestamp > NOW() - INTERVAL 5 MINUTE")

# Feature flags with A/B testing
show_new_ui: @query("SELECT enabled FROM ab_tests WHERE test_name = 'new_ui' AND user_segment = ?", [user_segment])

```

[![SVG 15](svg/git-svg/readme-new/cross-file-communication.svg)](svg/git-svg/readme-new/cross-file-communication.svg)

### **🔗 Cross-File Communication &amp; peanut.tsk Magic**

[](#-cross-file-communication--peanuttsk-magic)

```
# peanut.tsk - Global configuration accessible everywhere
globals {
    api_key: @env("API_KEY")
    base_url: "https://api.tuskt.sk"
    company: "TuskLang Corp"
}

# main.tsk - Reference globals from anywhere
api_endpoint: @global("base_url") + "/v2/users"
auth_header: "Bearer " + @global("api_key")

# worker.tsk - Cross-file references
main_config: @file("main.tsk")
database_config: @file("config/database.tsk")
api_url: main_config.api_endpoint + "/workers"

# Conditional file loading
environment: @env("NODE_ENV", "development")
env_config: @file("config/" + environment + ".tsk")

```

### **⚡ @ Operators - The Secret Sauce**

[](#--operators---the-secret-sauce)

```
# Environment variables with intelligent defaults
api_key: @env("API_KEY", "dev-key-12345")
debug: @env("DEBUG", false)

# Date/time operations
created_at: @date("Y-m-d H:i:s")
expires_at: @date("Y-m-d H:i:s", "+7 days")
cache_key: "data_" + @date("YmdHis")

# Intelligent caching - cache expensive operations
user_stats: @cache("5m", @query("SELECT COUNT(*) FROM users"))
api_response: @cache("30s", @http("GET", "https://external-api.com/data"))

# Machine learning optimization
optimal_workers: @optimize("worker_count", 4)
cache_size: @learn("optimal_cache_mb", 512)

# Metrics and monitoring
response_time: @metrics("avg_response_ms", 150)
error_rate: @metrics("error_percentage", 0.5)

# PHP code execution
server_memory: @php("memory_get_usage(true) / 1024 / 1024")
random_token: @php("bin2hex(random_bytes(16))")

# Smart conditionals
environment: @env("NODE_ENV", "development")
workers: environment == "production" ? 8 : 2
log_level: environment == "production" ? "error" : "debug"
ssl_enabled: environment != "development"

```

### **🚀 Executable Configuration (FUJSEN)**

[](#-executable-configuration-fujsen)

[![SVG 16](svg/git-svg/readme-new/executable-configuration-fujsen.svg)](svg/git-svg/readme-new/executable-configuration-fujsen.svg)

```
[payment]
process_fujsen: """
function process(amount, recipient) {
    if (amount
