Pyro
  • Product
    • Features
    • Platform
  • Pro
  • Developers
    • Documentation
    • Guides
    • Videos
    • GitHub
  • Community
    • Blog
    • Forum
    • Discord
    • Twitter
    • Facebook
  • Login

String

  1. Documentation
  2. Application
  3. Streams Platform
  4. String
X
  • Product
  • Features
  • Platform
  • Pyro PRO
  • Developers
  • Documentation
  • Guides
  • Videos
  • GitHub
  • Community
  • Blog
  • Forum
  • Discord
  • Twitter
  • Facebook
  • Login
  • Getting Started
    • Introduction
    • Installation
  • The Basics
    • Streams Plugin
    • Presenters
    • Routing
    • Views
    • Service Container
    • Service Providers
  • Services
    • Asset
    • Authorization
    • Artisan
    • Callbacks
    • Collections
    • Config
    • Currency
    • Evaluator
    • Filesystem
    • Hooks
    • Image
    • Localization
    • Messages
    • Parser
    • Resolver
    • String
    • Valuation
  • UI
    • Breadcrumbs
    • Buttons
    • Control Panel
    • Forms
    • Icons
    • Tables
  • Database
    • Migrations
    • Query Builders
  • Models
    • Relationships
    • Entry Routers
  • Plugin
    • Addon
    • Agent
    • Asset
    • Auth
    • Breadcrumb
    • Favicons
    • Carbon
    • Config
    • CSRF
    • Entries
    • Env
    • Footprint
    • Image
    • Request
    • Route
    • Session
    • String
    • Translator
    • URL
    • View
  • Addons
    • The Basics
    • Field Types
Edit this Page
  • 1.7
  • 1.6
  • 1.5
  • 1.4
  • 1.3

String

The str_* functions map directly to the \Anomaly\Streams\Platform\Support\Str class which extends Laravel's \Illuminate\Support\Str class.

For more information on usage please refer to the String service.

{{ str_humanize("hello_world") }} // "Hello World"

{{ str_truncate(string, 100) }}

{% if str_is("*.module.*", addon("users").namespace) %}
    That's a valid module namespace!
{% endif %}

{{ str_camel("some_slug") }} // "someSlug"

{{ str_studly("some_slug") }} // "SomeSlug"

{{ str_random(10) }} // 4sdf87yshs
  1. String

©2025 PyroCMS, Inc.
All rights reserved.