Question

I have to integrate my CardScan (from http://cardscan.com/) with my PHP so I can get any information from the card scanned with the device.

Any clue about where I should start?

--

I'll try to integrate it with my Ubuntu development enviroment, and the device will be conected to my computer via USB.

--

I'm givin a try to SANE, but it doesn't find the device: https://askubuntu.com/questions/24297/problem-with-sane-and-cardscan-cant-find-the-device

Was it helpful?

Solution

You've not provided a lot of the information we would need to answer your question accurately/completely.

PHP is usually run on a webserver to provide a UI via a browser over HTTP - in this architecture the PHP code has no access to the hardware on the client. It is possible to write CLI / Daemon and even GUI applications using PHP integrating directly with the window manager - is this what you are talking about? What OS will this run on?

Since CardScan appears to be a simple scanner, then if the PHP code is running on the machine where the scanner is attached, then it should simply be a matter of running an external program to talk to the scanner and capture the image.

  • for Linux/Unix use SANE
  • for MSWindows, use a CLI TWAIN tool - e.g. twain commander
  • Apple MacOs seems to use a twain API - but you'll need to search to find tools - however it also supports SANE

OTHER TIPS

Start by asking them if they have an API, webservice, public interface or a connector that communicates with the outside world. PHP is a web programming language. If this card reader is a phisical device maybe Python or C++ are better for this job.

From what I see their are synchronizing the cards with Outlook so they must have some software outputing information. Try to figure out what is the format and if is available to intercept somewhere.

Now this depends on how the card-reader interfaces out the data from the scanned card. My experience with magnetic stripe readers is that the data is output as keyboard type input.

I would suggest that you need to develop some form of Client Side app - to handle the input, and then post data to the relevant PHP modules on a webserver.

A good start would be the developer manuals for the hardware to understand how it interfaces.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top