like(1234, 'user1'); // Remove like $fdlikes->unlike(1234, 'user1'); // Check if user has already liked $hasLiked = $fdlikes->hasLiked(1234, 'user1'); ?>In this example, we are initializing the FD likes library, and then using it to add and remove likes, as well as checking if a user has already liked something. The package library used in this example is FD likes, which is a popular choice for adding like/dislike functionality to websites.