CardDAV Server in PHP

I am currently digging a way to create a CardDAV server in PHP. This is for a small development, which, we hope, will allow my company to exchange contacts with / to many types of devices serviced by the user backend / CRM.

I started playing, trying to understand the protocol, but ended up being twice as confused. Then I read the IETF projects, but found out that I didn’t even understand the basics of WebDAV itself.

In what form would you advise me to start studying CardDAV, WebDAV and everything related?

+3
source share
2 answers

, webdav. IETF , .

WebDAV

HTTP - , . -.

, WebDAV , , .

webdav - -, .

, collections -, -. , (, , )

- mkcol

, files have attributes, web resources have meta-properties, -. - - (HTTP ).

, methods to enquire into meta-properties - PROPFIND, - PROPATCH. XML .

WebDAV , .

webdav. - . ex: Resourcetype Property. , , -, .

, GET ( HTTP) , PUT , DELETE .

HTTP

webdav, HTTP.

  • , .
  • , .
  • , .
  • . , depth header, , .

WebDAV

  +--------+    +--------------+
  |Resource|... |Property      |
  +--------+    +--------------+
                +------++------+
                |Webdav||custom|
                +------++------+

  +-----------+
  |Dav root: /|......
  +-----------+     |     +--------+
                    |.....|Resource|
                    |     +--------+
                    |     +----------+
                    |.....|Collection|.....   +----------+
                    '     +----------+    |...|Collection|
                                          |   +----------+
                                          |    +--------+
                                          |....|Resource|
                                               +--------+
+12

DAViCal, CalDAV CardDAV, PHP Postgres. , , : . , DAViCAl Apple ( , ).

( , ), - , , DAViCal Cal- CardDAV.

http://www.davical.org

0

Source: https://habr.com/ru/post/1779528/


All Articles