diff --git a/examples/all.php b/examples/all.php
index <HASH>..<HASH> 100644
--- a/examples/all.php
+++ b/examples/all.php
@@ -25,7 +25,7 @@
 
 namespace Malenki;
 
-include('../src/Malenki/Ansi.php');
+(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
 
 foreach(array('black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'white') as $color)
 {
diff --git a/examples/colors.php b/examples/colors.php
index <HASH>..<HASH> 100644
--- a/examples/colors.php
+++ b/examples/colors.php
@@ -25,7 +25,7 @@
 
 namespace Malenki;
 
-include('../src/Malenki/Ansi.php');
+(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
 
 foreach(array('black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'white') as $color)
 {
Use autoloader of composer for examples