What does your manual say? No one here knows anything about your barcode scanner. You haven't even told us the brand name and model number, or even the operating system you are running on. If your scanner has an API, we can help you out, but you're starting on the from point.
Before you ask "how can I use PHP to read from my barcode scanner?", you first need to answer the question "what facilities does my barcode scanner provide to allow other systems to use it?" The manufaturer of your scanner should be able to answer that. When you have the answer, we may be able to help you write the appropriate code in PHP.
Just out of interest, why have you decided that PHP is the language to use?