Convert YAML to PHP Array Online

Form for YAML converting

This form allows you convert YAML to PHP Array, paste or upload your YML file below:

Your result can be seen below.

Result of YAML conversion to PHP Array

Move to "Paste Code" for Save it

About YAML conversion to PHP Array

About YAML conversion to PHP Array

The Convert YAML to PHP array was created for online converting YAML into appropriate PHP type as Array. This can come in handy for testing or debugging your YAML data, also for fast formatting and adding an array of PHP to your config or anywhere else.

How it Works?

Just paste your YAML to the textarea above and click to the button "Convert" and you will get PHP array in the next textarea.

Example of YAML conversion to PHP Array

# test yaml -----------------------------------------------#
namespace: common\tests
actor_suffix: Tester
    tests: tests
    output: tests/_output
    data: tests/_data
    support: tests/_support
    bootstrap: _bootstrap.php
    colors: true
    memory_limit: 1024M
            configFile: 'config/test-local.php'
array (
  'namespace' => 'common\tests',
  'actor_suffix' => 'Tester',
  'paths' =>
  array (
    'tests' => 'tests',
    'output' => 'tests/_output',
    'data' => 'tests/_data',
    'support' => 'tests/_support',
  'settings' =>
  array (
    'bootstrap' => '_bootstrap.php',
    'colors' => true,
    'memory_limit' => '1024M',
  'modules' =>
  array (
    'config' =>
    array (
      'wtools' =>
      array (
        'configFile' => 'config/test-local.php',
After the conversion, you can apply the PHP array to your project or use it for some other purpose.

Did you like this tool? You can donate to us. This will help us improve our free web tools.