__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace RocketTheme\Toolbox\ArrayTraits;

use RuntimeException;
use Symfony\Component\Yaml\Exception\DumpException;
use Symfony\Component\Yaml\Yaml;

/**
 * Implements ExportInterface.
 *
 * @package RocketTheme\Toolbox\ArrayTraits
 * @author RocketTheme
 * @license MIT
 */
trait Export
{
    /**
     * Convert object into an array.
     *
     * @return array
     */
    public function toArray()
    {
        return $this->items;
    }

    /**
     * Convert object into YAML string.
     *
     * @param int $inline The level where you switch to inline YAML.
     * @param int $indent The amount of spaces to use for indentation of nested nodes.
     * @return string A YAML string representing the object.
     * @throws DumpException
     */
    public function toYaml($inline = 3, $indent = 2)
    {
        return Yaml::dump($this->toArray(), $inline, $indent, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
    }

    /**
     * Convert object into JSON string.
     *
     * @return string
     */
    public function toJson()
    {
        $string = json_encode($this->toArray());
        if (!\is_string($string)) {
            throw new RuntimeException('Failed to encode array', 500);
        }

        return $string;
    }
}

Filemanager

Name Type Size Permission Actions
ArrayAccess.php File 1.69 KB 0664
ArrayAccessWithGetters.php File 1.29 KB 0664
Constructor.php File 431 B 0664
Countable.php File 408 B 0664
Export.php File 1.22 KB 0664
ExportInterface.php File 624 B 0664
Iterator.php File 1.69 KB 0664
NestedArrayAccess.php File 5.62 KB 0664
NestedArrayAccessWithGetters.php File 1.3 KB 0664
Serializable.php File 1.21 KB 0664
Filemanager