OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
docs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
08/12/2024 10:34:12 AM
rwxr-xr-x
π
Makefile
7.68 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
_static
-
08/12/2024 10:34:12 AM
rwxr-xr-x
π
_templates
-
08/12/2024 10:34:12 AM
rwxr-xr-x
π
authentication.rst
13.82 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
cloud-firestore.rst
2.37 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
cloud-messaging.rst
26.18 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
cloud-storage.rst
2.5 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
conf.py
1.17 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
dynamic-links.rst
11.35 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
framework-integrations.rst
505 bytes
08/12/2024 10:33:24 AM
rw-r--r--
π
index.rst
2.31 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
overview.rst
4.51 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
realtime-database.rst
20.11 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
remote-config.rst
7.96 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
requirements.txt
40 bytes
08/12/2024 10:33:24 AM
rw-r--r--
π
setup.rst
8.29 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
troubleshooting.rst
10.57 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
tutorials.rst
1.71 KB
08/12/2024 10:33:24 AM
rw-r--r--
π
user-management.rst
18.32 KB
08/12/2024 10:33:24 AM
rw-r--r--
Editing: overview.rst
Close
######## Overview ######## ************ Requirements ************ * PHP >= 7.4 * The `mbstring PHP extension <http://php.net/manual/en/book.mbstring.php>`_ * A Firebase project - create a new project in the `Firebase console <https://firebase.google.com/console/>`_, if you don't already have one. * A Google service account, follow the instructions in the `official Firebase Server documentation <https://firebase.google.com/docs/server/setup#add_firebase_to_your_app>`_ and place the JSON configuration file somewhere in your project's path. ************ Installation ************ The recommended way to install the Firebase Admin SDK is with `Composer <http://getcomposer.org>`_. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. If you want to use the SDK within a Framework, please follow the installation instructions here: - **Laravel**: `kreait/laravel-firebase <https://github.com/kreait/laravel-firebase>`_ - **Symfony**: `kreait/firebase-bundle <https://github.com/kreait/firebase-bundle>`_ .. code-block:: bash composer require kreait/firebase-php After installing, you need to require Composer's autoloader: .. code-block:: php <?php require __DIR__.'/vendor/autoload.php'; You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at `getcomposer.org <http://getcomposer.org>`_. Please continue to the :ref:`Setup section <setup>` to learn more about connecting your application to Firebase. ************** Usage examples ************** You can find usage examples at `https://github.com/jeromegamez/firebase-php-examples <https://github.com/jeromegamez/firebase-php-examples>`_ and in the `tests directory <https://github.com/kreait/firebase-php/tree/master/tests>`_ of this project's `GitHub repository <https://github.com/kreait/firebase-php/>`_. ************** Issues/Support ************** - For bugs and past issues: `Github issue tracker <https://github.com/kreait/firebase-php/issues/>`_ - For questions and general discussions: `GitHub discussions <https://github.com/kreait/firebase-php/discussions>`_ - For help with and discussion about the PHP SDK: `Discord Community <https://discord.gg/Yacm7unBsr>`_ - For questions about Firebase in general: `Stack Overflow <https://stackoverflow.com/questions/tagged/firebase>`_ and the `Firebase Slack Community <https://firebase.community>`_. ******* License ******* Licensed using the `MIT license <http://opensource.org/licenses/MIT>`_. Copyright (c) JΓ©rΓ΄me Gamez <https://github.com/jeromegamez> <jerome@gamez.name> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ************ Contributing ************ Guidelines ========== #. The SDK utilizes PSR-4, PSR-7 and PSR-12. #. This SDK has a minimum PHP version requirement of PHP 7.4. #. All pull requests should include unit tests to ensure the change works as expected and to prevent regressions. Running the tests ================= The SDK is unit tested with PHPUnit. Run the tests using the Makefile: .. code-block:: bash make tests Coding standards ================ The SDK uses the `PHP Coding Standards Fixer <https://github.com/FriendsOfPHP/PHP-CS-Fixer>`_ to ensure a uniform coding style. Apply coding standard fixed using the Makefile: .. code-block:: bash make cs from the root of the project.