bytes-commerce/synology-php-api
Symfony bundle for the Synology NAS API (DSM). Quickly create an authenticated RequestManager and interact with shares and folders from your app. Requires PHP 8.2+ and Symfony 7.2+. Built on bytes-commerce/synology-php-api.
The Symfony Synology NAS API Bundle seamlessly integrates the Synology NAS API into your Symfony application. Leveraging the bytes-commerce/synology-php-api package, this bundle simplifies connecting to and managing your Synology NAS directly from your Symfony project.
Install the bundle using Composer:
composer require bytes-commerce/synology-php-api
If you are using Symfony Flex, the bundle will be automatically registered. Otherwise, ensure the bundle is added in
your config/bundles.php.
There is no configuration that needs to be done, besides passing your credentials in any way you'd like to the
RequestManagerFactory. The bundle does everything else for you.
use BytesCommerce\SynologyApi\Factory\RequestManagerFactory;
$manager = $this->managerFactory->createManager(
'https://<quickconnectUrl>.de99.quickconnect.to',
'<username>',
'<password>'
);
You need to create all Shares that you wish to work with first. Top-level shares seem not to be creatable by the bundle, so if you want to write to a specific location that is not existing yet, you need to create it first. Besides Shares, the API can create subfolders recursively.
For more advanced functionality, refer to the Synology PHP API documentation.
Contributions to the Symfony Synology NAS API Bundle are welcome! To contribute:
This bundle is open-sourced software licensed under the MIT License.
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
How can I help you explore Laravel packages today?