Hi there everyone.
I have started a personal project to develop and maintain a small framework that will provide Remote API features from a PHP script.
So far I haven’t gotten very far, but I am looking for feedback/contributions/enhancements as the project develops. What I have gotten so far can be found on Google Code:
If you browse the source, you will see a demo/ directory. In there is a small demonstration script that shows the basic usage of the framework.
So far there are two method available:
- createDomain(): Which, as you can imagine, can be used to create domains on your virtualmin server.
- listDomains(): This method returns the STDOUT that the program returns. This will be rewritten to either return and array of domains/sub-domains or an object that represents a domain. (It will start out as an array and develop into an object as the framework expands, I hope).
I have followed the coding styles of Zend/PEAR/Doctrine and will continue to, so if you DO contribute, then be nice and please save me the hassle of having to reformat your code
PLEASE DO NOT TEST THIS ON A LIVE VIRTUALMIN SERVER. I CANNOT BE HELD RESPONSIBLE FOR ANY PROBLEMS IT MAY CAUSE.
If you do feel like testing it/helping out then install VirtualBox and create a virtual machine running a (supported) flavour of linux and virtualmin.
I will keep this post updated with all activity and changes. Feel free to keep tabs on me
I hope you will all find this useful at some stage.