pstaender / silverstripe-helper
Collection of string manipulation and controller helpers
Installs: 53
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: >=7.0.0
- league/html-to-markdown: ^4.4
- michelf/php-markdown: ^1.7
- silverstripe/framework: ^4
- soundasleep/html2text: ^0.5.0
This package is auto-updated.
Last update: 2024-11-19 10:18:16 UTC
README
<?php class DBStringExtension extends SilverStripe\ORM\DataExtension { private static $casting = [ "Markdown" => "HTMLFragment", "MarkdownLine" => "HTMLFragment", ]; use PhilippStaender\SilverStripeHelper\Markdown; }
<?php \SilverStripe\ORM\FieldType\DBString::add_extension(DBStringExtension::class);