.. SlaxWeb Framework General Topics - Libraries file, created by Tomaz Lovrec .. highlight:: php .. _gen topics libraries: Libraries ========= Libraries are a collection of classes bundled together in one package to serve a purpose or to provide extended functionality to your application. They can be either written by yourself, or by someone else. The Framework provides a directory, **app/Library/** and a namespace **\\App\\Library**, for you to store those libraries. You can also use the :ref:`Composer `_ tool to install 3rd party libraries, and they will by default be installed into the **vendor/** directory. Registering libraries --------------------- How you will use the installed or written library is up to you, but we recommend you expose it to the application as a service. To do so, you need to write a service provider class. To write a service provider save it to the **app/Provider/** directory and give it the namespace of **\\App\\Provider**, in our example we will create a **MyProvider.php** file in the above example:: `_.