Manipulate strings object oriented.
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:
composer require simlux/string-buffer
<?php
use Simlux\String\StringBuffer();
$buffer = new StringBuffer('test');
$buffer->append('bar');
$buffer->prepend('foo');
echo $buffer->toString(); // footestbar
// with factory method
StringBuffer::create('Test') // Test
->append('Bar') // TestBar
->prepend('Foo'); // FooTestBar
StringBuffer::create('Test') // Test
->appendIf(true, 'AppendIf', 'AppendElse'); // TestAppendIf
StringBuffer::create('Test') // Test
->appendIf(false, 'AppendIf', 'AppendElse'); // TestAppendElse
StringBuffer::create('Test') // Test
->prependIf(true, 'PrependIf', 'PrependElse'); // PrependIfTest
StringBuffer::create('Test') // Test
->prependIf(false, 'PrependIf', 'PrependElse'); // PrependElseTest
StringBuffer::create('Test') // Test
->replace('es', 'ES'); // TESt
StringBuffer::create('Test') // Test
->remove('es'); // Tt
Docker Repository: https://hub.docker.com/_/sonarqube/
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
docker run --link sonarqube \
--entrypoint /opt/sonar-runner-2.4/bin/sonar-runner \
-e SONAR_USER_HOME=/data/.sonar-cache \
-v $(pwd):/data -u $(id -u) sebp/sonar-runner \
-Dsonar.host.url=http://sonarqube:9000 \
-Dsonar.jdbc.url=jdbc:h2:tcp://sonarqube/sonar \
-Dsonar.jdbc.username=sonar \
-Dsonar.jdbc.password=sonar \
-Dsonar.jdbc.driverClassName=org.h2.Driver \
-Dsonar.embeddedDatabase.port=9092
Sonar Runner: https://docs.sonarqube.org/display/SONARQUBE45/Installing+and+Configuring+SonarQube+Runner
wget http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip
unzip sonar-runner-dist-2.4.zip
./sonar-runner-2.4/bin/sonar-runner