Download the PHP package srhmster/php-dbus without Composer

On this page you can find all versions of the php package srhmster/php-dbus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-dbus

php-dbus

PHP library for interact with DBus. By default, the console utility busctl is used.

Basic usage

Composer

This library is designed for use with the composer PHP dependency manager. Simply add the srhmster/php-dbus package to get started:

`

Manually

If you don't have composer available, then simply download the code

`

and include autoload.php

``

Examples

Files with examples of using the library can be found in the examples directory

Available methods

__construct($service, Marshaller $marshaller = null, Command $command = null)

Construct new Dbus service object

Parameters:

call($objectPath, $interface, $method, $properties = null, $useSudo = false, $options = [])

Invoke a method and show the response

Parameters:

Response: array|string|int|float|bool|null

emit($objectPath, $interface, $signal, $value = null, $useSudo = false, $options = [])

Emit a signal

Parameters:

Response: void

getProperty($objectPath, $interface, $name, $useSudo = false, $options = [])

Retrieve the current value of object property

Parameters:

Response: array|string|int|float|bool|null

setProperty($objectPath, $interface, $name, $value = null, $useSudo = false, $options = [])

Set the current value of an object property

Parameters:

Response: void

Command options format

If the option does not require a value, then specify only its name otherwise specify an array

BusctlDataObject

This is a set of classes for convenient work with data in PHP. The BusctlMarshaller can convert this data into the correct Dbus format. Use the base class BusctlDataObject static methods described below to create a data object with the desired data type.

Available methods

::s($value = null)

Create string data object. Base data type

Parameters:

Response: StringDataObject

::o($value = null)

Create object path data object. Base data type

Parameters:

Response: ObjectPathDataObject

::b($value = null)

Create boolean data object. Base data type

Parameters:

Response: BooleanDataObject

::y($value = null)

Create byte data object. Base data type

Parameters:

Response: NumericDataObject

::n($value = null)

Create int16 data object. Base data type

Parameters:

Response: NumericDataObject

::q($value = null)

Create uint16 data object. Base data type

Parameters:

Response: NumericDataObject

::i($value = null)

Create int32 data object. Base data type

Parameters:

Response: NumericDataObject

::u($value = null)

Create uint32 data object. Base data type

Parameters:

Response: NumericDataObject

::x($value = null)

Create int64 data object. Base data type

Parameters:

Response: NumericDataObject

::t($value = null)

Create uint64 data object. Base data type

Parameters:

Response: NumericDataObject

::d($value = null)

Create double data object. Base data type

Parameters:

Response: NumericDataObject

::v(BusctlDataObject $value)

Create variant data object. Container data type

Parameters:

Response: VariantDataObject

::r($value)

Create struct data object. Container data type

Parameters:

Response: StructDataObject

::a($value)

Create array data object. Container data type

Parameters:

Response: ArrayDataObject

::e($value)

Create map data object. Container data type

Parameters:

Response: MapDataObject


All versions of php-dbus with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package srhmster/php-dbus contains the following files

Loading the files please wait ....