Skip to content

"a service you can count on"? - free as in freedom unique number repository (web service and client) available

Every needed a service that takes care of ensures each number is unique?
The unique number repository is such a service. Since it is "free as in freedom", you can own your data (why? because it is your data of course).
What is it? A simple REST based server and an example command line client.
It is using an authentication token to prevent the service is used by unauthorized persons. Feel free to create a pull request for a more sophisticated authentication method.

Translate to de es fr it pt ja

CreateEntity Propel Behavior released in version 1.0.0

I am happy to announce the release of Version 1.0.0 of the CreateEntity Behavior for Propel.

Why?

  • no new in your code anymore
  • eases up writing test code (createEntity can be mocked)
Translate to de es fr it pt ja

version 1.1.1 php component cli readline

I am happy to announce the release of 1.1.1 of bazzlines cli readline component for php.
Important changes are:
Since Version 1.1.1

  • fixed bug in nested arrays and dealing with closures
Since Version 1.1.0
  • removed unused DebugManager
  • moved from project namespace "Autocomplete" to "Readline"
Since Version 1.0.0
  • initial release

Whats so super cool about this component? Creating a php command line script with autocomplete was never that easy!

Translate to de es fr it pt ja

version 1.5.2 php component csv released

I am happy to announce the release of 1.5.3 of bazzlines csv component for php.
Important changes are:
Since Version 1.5.2

Since Version 1.5.1
  • updated dependency
Since Version 1.5.0
Since Version 1.4.0
  • started cli example to easy up usage
  • added "rewind" call when using reader::readAll() and reader::readMany()
Translate to de es fr it pt ja

version 1.3.0. php component csv released

I am happy to announce the release of 1.3.0 of bazzlines csv component for php.
Important changes are:
Since Version 1.3.0

  • added headline output support as keys for Reader::readMany()
  • added headline output support as keys for Reader::readOne()
    • can be disabled by Reader::disableAddHeadlineToOutput()
    • can be enabled by Reader::enableAddHeadlineToOutput()
    • is enabled by default
  • fixed broken unit test for php 5.3
  • moved complex array combine into own project
  • removed duplicated code in Reader
Since Version 1.2.0
Since Version 1.1.0
  • added link to api
  • added minimum php version requirement
  • implemented "move($path)" method into Writer
  • removed "TODO"
  • updated dependencies
Translate to de es fr it pt ja

version 1.0.0. php component csv released

I am happy to announce the release of 1.0.0 of bazzlines csv component for php.
Benefits

  • works with PHP 5.3 and above
  • __invoke() implemented to use it as function
  • unified reader and writer
  • adapter to easy up migration from EasyCsv - 0.0.1 to this component
  • reader
    • implemented iterator
    • readOne();
    • readMany();
    • readAll();
  • writer
    • truncate();
    • delete();
    • copy();
    • writeOne();
    • writeMany();
    • writeAll(); //truncates file and writes content

Translate to de es fr it pt ja

All API-Documents belongs to us - new Content on www.bazzline.net

After years of old content on bazzline.net, there is new content available there.
The page is now used as the central list of available "free as in freedom" open source software projects. Thanks to the api document builder, the content and especially the api documentation gets updated once per day. Of course, the api document builder is created by lovely and fluffy bazzline components :-).

Translate to de es fr it pt ja

New versions of the zend framework 2 console helper family available now

I happy to announce the release of 1.1.0 of bazzlines zend framework 2 console helper (debian backport) module for php as well as the release of 1.1.0 of bazzlines zend framework 2 console helpermodule for php.
Important changes are:

  • added AbstractConsoleControllerFactory
Translate to de es fr it pt ja

Updated Zend Framework 2 Modules because of the locator generator version 2.0.0 release

I announced already, version 2.0.0 of the "locator generator" is out.
Because of that, I am also happy to announce the release of 1.4.1 from the zend framework 2 "locator generator" module.
Furthermore, the debian 6/PHP 5.3 backport got the release of version 1.3.0.
And finally, and because of the fact that zend framework 2.5.* is dropping support for PHP 5.4, the new debian 7/PHP 5.4 got the release of version 1.7.0.
Major changes in all releases is the dependency update to the new locator generator version.

You want to have a quick look and tryout without any hassle? Try the zf demo environment available in three flavors, cutting edge, debian 7/PHP 5.4 backport and debian 6/PHP 5.3 backport.

Translate to de es fr it pt ja

version 2.0.0 of php locator generator component released

I happy to announce the release of 2.0.0 of bazzlines locator generator component for php. Important changes are:

  • Generator.php now throws "InvalidArgumentException" instead of "RuntimeException
  • Generator now tries to create the provided directory if it does not exists
  • fixed issue 2
  • fixed issue 4
  • fixed issue 5
  • implement usage of phpcomponentcliarguments
  • implement usage of phpcomponentcommand
  • fixed broken entry of "bin" in composer.json
  • renamed "bin/generaltelocator" to "bin/netbazzlinegeneratelocator"
  • renamed "bin/generateLocator.php" to "bin/generatelocator"
  • renamed "example/[..]/run.php" to "example/[...]/run"
  • fixed issue 3
  • updated dependencies
Translate to de es fr it pt ja

version 1.0.0 of php component cli argument released

I am happy to annoucen the release of 1.0.0 of bazzlines cli argument component for php.
Benefits

  • easy up handling of following kinds of arguments
    • flags (command -f|--force)
    • lists (command --foobar=foo | command -f=foo)
    • values values (command )

Example
A simple call to the shipped "run.php" with the following arguments:

php run.php --foo bar --foobar=foo --foobar="bar" -f="foo" -f=bar -b foobar foo -flag
Generates the following output:

arguments provided:
    --foo
    bar
    --foobar=foo
    --foobar=bar
    -f=foo
    -f=bar
    -b
    foobar
    foo
    -flag
flags provided:
    foo
    b
    f
    l
    a
    g
lists provided:
    foobar
        foo
        bar
    f
        foo
        bar
values provided:
    bar
    foobar
    foo

Translate to de es fr it pt ja

version 1.1.0 of php component requirement released

I happy to announce the release of 1.1.0 of bazzlines requirement component for php. Important changes are:

  • added example WithDisabledCondition
  • added example WithDisabledItem
  • added getConditions() method to RequirementInterface - this easies up disabling single conditions or single items (by using condition->getItems())
  • added migration howto
  • added version eye and scrutinizer coverage
  • covered AbstractItem and AbstractCondition with unit test
  • created AbstractItem that implements ItemInterface
  • created IsDisabledInterface
  • created ItemInterface
  • created TestCase that is extended by all phpunit tests
  • implemented IsDisabledInterface to AbstractCondition
  • implemented IsDisabledInterface to Requirement
  • refactored ConditionInterface, addItem now only accepts ItemInterface instead of IsMetInterface
  • refactored Condition::getItems() - now returns plain php array
  • renamed ConditionAbstract to AbstractCondition
  • renamed and updated previous WithShutdown example to WithDisabledRequirement
  • updated dependencies
Translate to de es fr it pt ja

version 1.0.1 of process pipeline component for php released

I happy to announce the release of 1.0.1 of bazzlines process pipeline component for php. Important changes are:

  • removed dependecy to apigen
  • add "StopExecutionException"
Translate to de es fr it pt ja

version 1.0.2 of zend framework 2 console helper (debian 6 backport) released

I happy to announce the release of 1.0.2 of bazzlines zend framework 2 console helper (debian backport) module for php. Important changes are:

  • removed dependency to apigen
  • updated dependencies
Translate to de es fr it pt ja

version 1.3.3 of zend framework 2 locator generator released

I happy to announce the release of 1.3.3 of bazzlines zend framework 2 locator generator module for php. Important changes are:

  • updated dependencies
  • removed apigen dependency
  • fixed dependency issue
  • added factory for controller creation
  • updated to locator generator 1.4.0
  • added documentation @todo - add link
  • added migration
  • added link to debian 6 / zend framework 2.2 backport
  • prefixed console commands with "net_bazzline" to not pollute the available command environment
Translate to de es fr it pt ja

version 1.0.3 of zend framework 2 console helper released

I happy to announce the release of 1.0.3 of bazzlines zend framework 2 console helper module for php. Important changes are:

  • removed apigen dependency
  • added use statement into example
  • added link to demo environment
  • added link to debian 6 / zend framework 2.2 backport
  • added minimum version of zend framework 2 to 2.3.* since AbstractConsoleController is mandatory
  • updated dependencies
Translate to de es fr it pt ja

version 1.2.2 of zend framework 2 locator generator (debian 6 backport) released

I happy to announce the release of 1.2.2 of bazzlines zend framework 2 locator generator module for php. Important changes are:

  • added factory for controller creation
  • added migration
  • update dependencies
  • removed dependency from apigen
Translate to de es fr it pt ja

version 1.4.1 of php locator generator component released

I happy to announce the release of 1.4.1 of bazzlines locator generator component for php. Important changes are:

  • removed dependency to apigen
  • implemented generation of "LocatorGeneratorInterface"
  • easy up usage of examples by adding command "executeexample"
  • added example for "methodnamewithoutnamespace"
  • updated api
  • updated dependencies
  • easy up usage of examples (by adding a "run.php" in the directories
  • implemented "methodnamewithoutnamespace" option in "FromPropelSchemaXmlAssembler" ("createMyTable" instead of "createMyNamespaceMyTable")
  • refactored Command
  • refactored FromArrayAssembler
  • refactored FromPropelSchemaXmlAssembler
  • fixed bug in propel name space FromPropelSchemaXmlAssembler
  • refactored FromPropelSchemaXmlAssembler
  • extended usage output
  • enhanced Command (absolute configuration paths are now supported)
  • fixed (stupid) broken unittest
  • fixed error in Command (check if "bootstrapfile" exists in configuration was not well implemented)
  • updated dependencies
Translate to de es fr it pt ja

version 1.0.3 of command component for php released

I am happy to announce the release of 1.0.3 of bazzlines command component for php. This component will easy up the usage of system commands.
Major improvement is the public method "validateSystemEnvironment". You should use this (maybe in your factory) to validate if the system environment is valid (e.g. "/usr/bin/ls" exists and is executable). An exception should be thrown, so you can easily track back the source of the validation error.
Enjoy it.

Translate to de es fr it pt ja

version 1.0.2 of command component for php released

I am happy to announce the release of 1.0.2 of bazzlines command component for php. This component will easy up the usage of system commands.
Indeed, I missed to announce 1.0.0, but you know, christmas is hard time and this component is really a small one.
This project aims to deliver a easy to use php command component. It adds a very thin layer but hopefully adds a lot of usage and handling benefits :-).

Usage


usage Net\Bazzline\Component\Command\Command;

class Zip extends Command { /** * @param string $archiveName * @param array $items * @return array * @throws RuntimeException * @todo implement parameter validation */ public function zip($archiveName, array $items) {
$command = '/usr/bin/zip -r ' . $archiveName . ' ' . implode(' ' , $items);

    return $this->execute($command);
}

/** 
 * @param string $pathToArchive
 * @param null|string $outputPath
 * @return array
 * @throws RuntimeException
 * @todo implement parameter validation
 */
public function unzip($pathToArchive, $outputPath = null)
{   
    if (!is_null($outputPath)) {
        $command = '/usr/bin/unzip ' . $pathToArchive . ' -d ' . $outputPath;
    } else {
        $command = '/usr/bin/unzip ' . $pathToArchive;
    }

    return $this->execute($command);
}

/** 
 * @param string $pathToArchive
 * @return array
 * @throws RuntimeException
 * @todo implement parameter validation
 */
public function listContent($pathToArchive)
{   
    $command = '/usr/bin/unzip -l ' . $pathToArchive;

    return $this->execute($command);
}

}

$zip = new Zip();

$pathToZipArchive = '/tmp/my.zip';

echo 'list archive content' . PHPEOL; $lines = $zip->listContent($pathToZipArchive); foreach ($lines as $line) { echo $line . PHPEOL; }

echo 'unzip archive' . PHPEOL; $zip->unzip($pathToZipArchive, '/tmp/mydirectory');

echo 'zip directory' . PHPEOL; $zip->zip($pathToZipArchive, array('/tmp/mydirectory'));

How to install?

By Hand


mkdir -p vendor/netbazzline/phpcomponentcommand
cd vendor/netbazzline/phpcomponentcommand
git clone https://github.com/bazzline/phpcomponentcommand .

With Packagist


composer require netbazzline/phpcomponent_command:dev-master
Translate to de es fr it pt ja

version 1.0.0 of process pipeline component for php released

I happy to announce the release of 1.0.0 of bazzlines process pipeline component for php. This component will easy up the creation of process pipe.

Indeed, it is a pseudo pipeline (process collection or process batch) since the php process is single threaded so far.

Special thanks to Ralf Westphal and especially for his book the architects napkin.

Why?

  • separate complex operations into simpler
  • easy up unit testing for smaller processes
  • separate responsibility (data generator/transformer/validator/flow manipulator)
  • create process chains you can read in the code (separate integration code from operation code)
  • no dependencies (except you want to join the development team)

How to use?


use Net\Bazzline\Component\ProcessPipe\ExecutableException;
use Net\Bazzline\Component\ProcessPipe\InvalidArgumentException;
use Net\Bazzline\Component\ProcessPipe\Pipe;

try { $pipe = new Pipe();

$pipe->pipe(
    new ProcessOne(), 
    new ProcessTwo()
);

$output = $pipe->execute($input);

} catch (ExecutableException) { //handle process exception } catch (InvalidArgumentException) { //handle pipe exception }

How to install?

By Hand


mkdir -p vendor/netbazzline/phpcomponentprocesspipe
cd vendor/netbazzline/phpcomponentprocesspipe
git clone https://github.com/bazzline/phpcomponentprocesspipe

With Packagist


composer require netbazzline/phpcomponentprocess_pipe:dev-master
Translate to de es fr it pt ja

version 1.0.0 of zend framework 2 console helper (debian 6 backport) released

I am happy to announce the release of 1.0.0 of bazzlines zend framework 2 console helper module for php.
It is a backport of the existing locator generator module.

Translate to de es fr it pt ja