1 [![Build Status](https://travis-ci.org/cssjanus/php-cssjanus.svg?branch=master)](https://travis-ci.org/cssjanus/php-cssjanus) [![Packagist](https://img.shields.io/packagist/v/cssjanus/cssjanus.svg?style=flat)](https://packagist.org/packages/cssjanus/cssjanus)
5 Convert CSS stylesheets between left-to-right and right-to-left.
10 $rtlCss = CSSJanus::transform( $ltrCss );
15 ``transform( $css, $swapLtrRtlInURL = false, $swapLeftRightInURL = false )``
17 * ``$css`` (string) Stylesheet to transform
18 * ``$swapLtrRtlInURL`` (boolean) Swap 'ltr' and 'rtl' in URLs
19 * ``$swapLeftRightInURL`` (boolean) Swap 'left' and 'right' in URLs
21 ### Preventing flipping
23 Use a ```/* @noflip */``` comment to protect a rule from being changed.
27 /* Will be converted to margin-right */
32 /* Will be preserved as margin-left */
39 This is a PHP port of the Node.js implementation of CSSJanus.
41 Feature requests and bugs related to the actual CSS transformation or test
42 cases of it, should be submitted upstream at
43 <https://github.com/cssjanus/cssjanus>.
45 Upstream releases will be ported here.