{"id":18498586,"url":"https://github.com/zircote/jazsl","last_synced_at":"2025-05-14T05:24:53.705Z","repository":{"id":66126311,"uuid":"1799817","full_name":"zircote/Jazsl","owner":"zircote","description":"Just Another Zend Server \u0026 Zend Server Cluster Manager Library","archived":false,"fork":false,"pushed_at":"2011-07-03T16:17:28.000Z","size":156,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T17:43:08.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zircote.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-25T16:25:42.000Z","updated_at":"2015-05-16T13:56:21.000Z","dependencies_parsed_at":"2023-02-19T23:01:00.858Z","dependency_job_id":null,"html_url":"https://github.com/zircote/Jazsl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FJazsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FJazsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FJazsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FJazsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/Jazsl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217105,"owners_count":19601593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:41:28.506Z","updated_at":"2025-02-17T00:45:18.545Z","avatar_url":"https://github.com/zircote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Jazsl -- Just Another Zend Server Library\nBased on the Zend Framework Jazsl is a simple Api Client for Zend Server and Zend Server Cluster Manager. This client library is intentionally simple, it is intended that you the consumer will extend its functionality. I do plan to add a Zend_Tool_Provider in the near future as I find the bandwidth.\n\nIt provides access to API methods:\n\n## Todo\n* Finish Unit Tests\n* Complete documentation\n\n### Jazsl_Tool\n[Jazsl_Tool](https://github.com/zircote/Jazsl/blob/master/Tool.md) \n\n### Cluster Manger Methods\n* clusterAddServer\n  * @returns `Jazsl_Response_ServerInfo`\n  * Error @returns `Jazsl_Response_ErrorData`\n* clusterRemoveServer\n  * @returns `Jazsl_Response_ServerInfo`\n  * Error @returns `Jazsl_Response_ErrorData`\n* clusterDisableServer\n  * @returns `Jazsl_Response_ServerInfo`\n  * Error @returns `Jazsl_Response_ErrorData`\n* clusterEnableServer\n  * @returns `Jazsl_Response_ServerInfo`\n  * Error @returns `Jazsl_Response_ErrorData`\n* clusterGetServerStatus\n  * @returns `Jazsl_Response_ServersList`\n  * Error @returns `Jazsl_Response_ErrorData`\n\n### Generic Server Methods\n* getSystemInfo\n  * @returns `Jazsl_Response_ServerInfo`\n  * Error @returns `Jazsl_Response_ErrorData`\n* restartPhp\n  * @returns `Jazsl_Response_ServersList`\n  * Error @returns `Jazsl_Response_ErrorData`\n\n### Configuration Method\n* configurationExport\n  * @returns `string $filename`\n  * Error @returns `Jazsl_Response_ErrorData`\n* configurationImport\n  * @returns `Jazsl_Response_ServersList`\n  * Error @returns `Jazsl_Response_ErrorData`\n  \n# Use Examples\n\n## clusterAddServer\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Cluster_AddServer(\n    'http://localhost:10081/ZendServerManager'\n);\n/* set required params: serverUrl, serverName and guiPassword */ \n\n$serverInfo = $addServer-\u003esetServerName('www-05') // required\n    -\u003esetServerUrl('https://www-05.local:10082/ZendServer') //required\n    -\u003esetGuiPassword('somepassword') // required\n    -\u003esetDoRestart('true') // defaults to false\n    -\u003esetPropagateSettings('false') // defaults to false\n    -\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServerInfo on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n```\n## clusterRemoveServer\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Cluster_RemoveServer(\n    'http://localhost:10081/ZendServerManager'\n);\n/* set required param: serverId */ \n\n$serverInfo = $addServer-\u003esetServerId(3) //required\n    -\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServerInfo on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n```\n\n## clusterDisableServer\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Cluster_DisableServer(\n    'http://localhost:10081/ZendServerManager'\n);\n/* set required param: serverId */ \n\n$serverInfo = $addServer-\u003esetServerId(3) //required\n    -\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServerInfo on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n```\n\n## clusterEnableServer\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Cluster_EnableServer(\n    'http://localhost:10081/ZendServerManager'\n);\n/* set required param: serverId */ \n\n$serverInfo = $addServer-\u003esetServerId(3) //required\n    -\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServerInfo on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n\n## getServerStatus\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Cluster_GetServerStatus(\n    'http://localhost:10081/ZendServerManager'\n);\n\n$serverInfo = $addServer-\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServersList on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n\n## restartPhp\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Server_RestartPhp(\n    'http://localhost:10081/ZendServerManager'\n);\n\n$serverInfo = $addServer-\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServersList on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n\n## getServerInfo\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Server_GetServerInfo(\n    'http://localhost:10081/ZendServer'\n);\n\n$serverInfo = $addServer-\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServerInfo on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n\n## configurationExport\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Config_Export(\n    'http://localhost:10081/ZendServer'\n);\n\n$serverInfo = $addServer\n    -\u003esetFilename('/tmp/zcsm-export-2010-05-23.zfcg')\n    -\u003erequest($auth);\n/**\n * @returns string $filename on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n\n## configurationImport\n\n```php\n\u003c?php\n$auth = new Jazsl_Auth();\n/* assign the api credentials */\n$auth-\u003esetApiKey('SomeApiKeyValue')\n    -\u003esetApiName('SomeApiKeyName');\n$addServer = new Jazsl_Config_Export(\n    'http://localhost:10081/ZendServer'\n);\n\n$serverInfo = $addServer\n    -\u003esetFilename('/tmp/zcsm-export-2010-05-23.zfcg')\n    -\u003esetIgnoreSystemMismatch('false')\n    -\u003erequest($auth);\n/**\n * @returns Jazsl_Response_ServersList on Success\n * @return Jazsl_Response_ErrorData on Error\n */\n \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fjazsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Fjazsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fjazsl/lists"}