marten/nette-idn

Nette helpers and extension for IDN server

dev-master / 0.1.x-dev 2013-11-10 14:49 UTC

This package is not auto-updated.

Last update: 2024-12-17 05:58:03 UTC


README

To register this extension into the Nette, add the latte macro extension to your config file.

Nette 2.0.x

factories:
	nette.latte:
		class: Nette\Latte\Engine
		setup:
			- Marten\NetteIdn\IdnMacros::install(::$service->getCompiler())

Nette 2.1.x

latte:
	macros:
		- Marten\NetteIdn\IdnMacros::install

Then you need to configure your IDN account and API class.

idn:
	class: Marten\NetteIdn\Api('username', 'password')