GithubHelp home page GithubHelp logo

smokietr / php-e-fatura-imzalama-araci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bylegens/php-e-fatura-imzalama-araci

0.0 1.0 0.0 16.91 MB

PHP İçin Java İle Hazırlanmış E-Fatura İmzalama Aracı

License: GNU General Public License v3.0

PHP 10.79% Java 89.21%

php-e-fatura-imzalama-araci's Introduction

PHP E-Fatura İmzalama Aracı

=============================================

PHP İçin Java İle Hazırlanmış E-Fatura İmzalama Aracı


Örnek Kullanım Şekli :

<?php 

	/* Smart Kart Fatura İmzalama */
	function Imzala($java_dosyasi, $fatura_dosyasi, $pin=null, $seriImza=false, $dosyayaKaydet=true)
	{
		/* Java Dosyasına Veri Yollanıyor */
		if($pin != null)
		{	
			exec("java -Dfile.encoding=UTF8 -jar $java_dosyasi {$fatura_dosyasi,$pin,$seriImza,$dosyayaKaydet} 2>&1", $cikti);
			
			
			$sonuc = $cikti;
			
			foreach ($cikti AS $ciktiDeger)
			{
				if(strstr($ciktiDeger, 'İmzalandı...') == true)
				{
					$sonuc = true;
					break;
				}
			}
			
			return $sonuc;
		}
	}
	/* Smart Kart Fatura İmzalama */

	$dizin = (__DIR__ . DIRECTORY_SEPARATOR);
	$java_dosyasi=$dizin."Java/NTGEFaturaImza.jar";
	$fatura_dosyasi='TemelFaturaOrnegi.xml';
 	$pin = '123456';

	$cikti = Imzala($java_dosyasi, $fatura_dosyasi, $pin);

	if($cikti == true) echo 'İmzalandı...';
	else echo 'Hata Oluştu...';
?>

Açıklamalar : http://yucelkahraman.com.tr/php-icin-e-fatura-imzalama-araci.html

php-e-fatura-imzalama-araci's People

Contributors

3zrasasi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.