Pengertian Stream PHP
Stream adalah cara untuk menggeneralisasi file, jaringan, kompresi data, dan operasi lain yang memiliki sekumpulan fungsi dan penggunaan yang sama. Dalam definisi yang paling sederhana, aliran adalah objek sumber daya yang menunjukkan perilaku yang dapat dialirkan. Artinya, dapat dibaca dari atau ditulis ke dalam gaya linier dan mungkin dapat fseek() ke lokasi yang berubah-ubah dalam stream.
Wrapper adalah kode tambahan
yang memberi tahu streaming cara menangani protokol / encoding tertentu.
Instalasi
Fungsi Stream adalah bagian dari inti PHP. Jadi, tidak diperlukan instalasi untuk menggunakan fungsi ini.
Fungsi Stream PHP
set_socket_blocking() | Tidak digunakan lagi di PHP 5.4, dan dihapus di PHP 7.0. Alias dari stream_set_blocking() |
stream_bucket_prepend() | |
stream_context_create() | |
stream_context_get_default() | |
stream_context_get_options() | |
stream_context_get_params() | |
stream_context_set_default() | |
stream_context_set_options() | |
stream_context_set_params() | |
stream_copy_to_stream() | Menyalin data dari satu stream ke stream lainnya |
stream_filter_append() | Menambahkan filter ke stream |
stream_filter_prepend() | |
stream_filter_register() | |
stream_filter_remove() | |
stream_get_contents() | |
stream_get_filters() | |
stream_get_line() | |
stream_get_meta_data() | |
stream_get_transports() | |
stream_get_wrappers() | |
stream_is_local() | |
stream_isatty() | |
stream_notification_callback() | |
stream_register_wrapper() | Alias dari stream_wrapper_register() |
stream_resolve_include_path() | |
stream_select() | |
stream_set_blocking() | |
stream_set_chunk_size() | |
stream_set_read_buffer() | |
stream_set_timeout() | |
stream_set_write_buffer() | |
stream_socket_accept() | |
stream_socket_client() | |
stream_socket_enable_crypto() | |
stream_socket_get_name() | |
stream_socket_pair() | |
stream_socket_recvfrom() | |
stream_socket_sendto() | |
stream_socket_server() | |
stream_socket_shutdown() | |
stream_supports_lock() | |
stream_wrapper_register() | |
stream_wrapper_restore() | |
stream_wrapper_unregister() |
Stream Example App
This example app shows you how you can use GetStream.io to build a site similar to Pinterest.
The application is built using Laravel 5 and Stream-Laravel.
The project is based on the stream-laravel integration for Stream. There is also a lower level PHP - Stream integration library which is suitable for all PHP applications.
You can sign up for a Stream account at //getstream.io/get_started.
If you're looking to self-host your feed solution we suggest the open source Stream-Framework, created by the Stream founders.
Live demo
Coming soon.
Deploying the app
Heroku
The best way to understand and try out this application is via Heroku. You can deploy the app, for free, simply by clicking the following button:
Local
If you prefer to run this locally then make sure to generate the API keys on GetStream.io and update the settings in config/database.php and in config/packages/get-stream/stream-laravel/config.php.
Once you have the right settings you can get your database ready by running the provision command (./provision.sh)
Tutorial
Coming soon.
Copyright and License Information
Copyright (c) 2015-2017 Stream.io Inc, and individual contributors. All rights reserved.
See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.