You can load DLLs (.so files on linux/other and .dll in windows) using function load_so.
.so
.dll
load_so
$dll = load_so('/path/to/file.so') $dll->some_func() # ...