All Projects β†’ contributte β†’ Cookbook

contributte / Cookbook

Licence: other
🎢 Cookbook for Nette Framework (@nette) & Contributte (@contributte). Read it while its HOT!

Projects that are alternatives of or similar to Cookbook

Neon
🍸 Encodes and decodes NEON file format.
Stars: ✭ 674 (+2146.67%)
Mutual labels:  nette, nette-framework, neon
Bootstrap
πŸ…± The simple way to configure and bootstrap your Nette application.
Stars: ✭ 524 (+1646.67%)
Mutual labels:  nette, nette-framework, configuration
Di
πŸ’Ž Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
Stars: ✭ 645 (+2050%)
Mutual labels:  nette, nette-framework, dependency-injection
Senparc.co2net
ζ”―ζŒ .NET Framework & .NET Core ηš„ε…¬ε…±εŸΊη‘€ζ‰©ε±•εΊ“
Stars: ✭ 289 (+863.33%)
Mutual labels:  dependency-injection, configuration
Tester
Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏
Stars: ✭ 281 (+836.67%)
Mutual labels:  nette, nette-framework
Mail
πŸ“§ Handy email creation and transfer library for PHP with both text and MIME-compliant support.
Stars: ✭ 288 (+860%)
Mutual labels:  nette, nette-framework
command-line
⌨ Command line options and arguments parser.
Stars: ✭ 35 (+16.67%)
Mutual labels:  nette, nette-framework
Schema
πŸ“ Validating data structures against a given Schema.
Stars: ✭ 359 (+1096.67%)
Mutual labels:  nette, nette-framework
Latte
β˜• Latte: the intuitive and fast template engine for those who want the most secure PHP sites.
Stars: ✭ 616 (+1953.33%)
Mutual labels:  nette, nette-framework
Anura Server
the Anura configuration manger
Stars: ✭ 16 (-46.67%)
Mutual labels:  services, configuration
Finder
πŸ” Finder: find files and directories with an intuitive API.
Stars: ✭ 765 (+2450%)
Mutual labels:  nette, nette-framework
Guzzlette
πŸŒ€ Guzzle integration into Nette Framework (@nette)
Stars: ✭ 19 (-36.67%)
Mutual labels:  nette, nette-framework
Forms
πŸ“ Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.
Stars: ✭ 272 (+806.67%)
Mutual labels:  nette, nette-framework
psr7-http-message
πŸ’« PSR #7 [HTTP Message Interface] to Nette Framework (@nette)
Stars: ✭ 17 (-43.33%)
Mutual labels:  nette, nette-framework
migrations
πŸƒ Doctrine Migrations for Nette Framework
Stars: ✭ 36 (+20%)
Mutual labels:  nette, nette-framework
Flash Messages
Flash messages handler for Nette Framework (2.4+)
Stars: ✭ 8 (-73.33%)
Mutual labels:  nette, nette-framework
playground
πŸ“š Examples, projects, webprojects, skeletons for Nette Framework (@nette) from community members. Included @contributte @apitte @nettrine projects.
Stars: ✭ 23 (-23.33%)
Mutual labels:  nette, nette-framework
codeception
▢️ Integration of Nette Framework to Codeception.
Stars: ✭ 27 (-10%)
Mutual labels:  nette, nette-framework
Robot Loader
πŸ€ RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.
Stars: ✭ 690 (+2200%)
Mutual labels:  nette, nette-framework
Mobile Detect
Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework (2.4+)
Stars: ✭ 19 (-36.67%)
Mutual labels:  nette, nette-framework

Nette dependency injection cookbook

Build Status


This repository is for education. The main goal is to show how to define services in cool Nette Dependency-Injection Container (nette/di). The examples are written in NEON (take a look at ne-on.org) and in PHP classes called CompilerExtension.

Related blogposts:

Versions

Nette DI PHP
3.0 >=7.1
2.4 >=7.1
2.3 <7.2

Latest reference

Example

NEON

services:
  facebookAuthorizator: 
    class: App\Model\Security\FacebookAuthorizators(@redisCache)
    
  redisCache: Predis\PredisClient

PHP

$builder->addDefinition('facebookAuthorizator')
    ->setClass('App\Model\Security\FacebookAuthorizators(@redisCache)');

$builder->addDefinition('redisCache')
    ->setClass('Predis\PredisClient');

Roadmap

  • [?] Create some online tool using now.sh (@zeit).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].