Is it possible to add items automatically by php code

Is it the only way to submit a form to add items?
How to add item by php in omeka.

A plugin could easily add items via PHP. The most important function it would use is insert_item()

You can also make use of the REST API to add items.

What should I do to perform post method to API,use php curl?

PHP curl should be fine. Or, if you want to use Zend, there's this PHP client

Thanks a lot!