Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
String Calc

String Calc Laravel Package

chriskonnertz/string-calc

StringCalc is a lightweight PHP library that evaluates mathematical expressions passed as strings, turning terms like 1+1 or sqrt(16)*2 into results. It supports basic operators, brackets, and common functions, with no dependencies—ideal for calculators and formula inputs.

Deep Wiki
Context7

StringCalc is a lightweight PHP library that evaluates mathematical expressions written as strings—ideal when formulas originate from user input, configuration files, or database records. It parses terms with correct operator precedence and returns the computed value, sparing you from writing and maintaining a custom parser.

Features

  • Evaluates string expressions with the standard arithmetic operators
  • Handles parentheses, nested expressions, and unary signs correctly
  • Extensible via custom functions and constants
  • Clean, object-oriented API with minimal setup
  • No external dependencies and PSR-compatible
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource